Repository navigation
Port runtime options, footprint baseline, and app guidance from mrubyc-zephyr - #12
Merged
Merged
Conversation
Co-Authored-By: Yoshihiro Yamashiro <me@xn--uist1idrju3i.jp>
Co-Authored-By: Yoshihiro Yamashiro <me@xn--uist1idrju3i.jp>
Co-Authored-By: Yoshihiro Yamashiro <me@xn--uist1idrju3i.jp>
Contributor
Author
|
I'll fix CI failures and address comments from users with write access that start with 'Devin'.
|
Co-Authored-By: Yoshihiro Yamashiro <me@xn--uist1idrju3i.jp>
Contributor
Author
There was a problem hiding this comment.
Devin Review found 2 findings. Devin automatically fixed all 2 findings.
Fixed by Devin (2)
- Legacy macros misread boxed floats — NaN boxing now forces the legacy value macros off (Kconfig), README corrected, and the test app asserts it.
- Long exception messages leak memory — The 16-bit exception length is in unmodified upstream 3.4.1 code. Kconfig help and README now document the 65535-byte exception message limit for 32-bit strings.
Co-Authored-By: Yoshihiro Yamashiro <me@xn--uist1idrju3i.jp>
Co-Authored-By: Yoshihiro Yamashiro <me@xn--uist1idrju3i.jp>
Co-Authored-By: Yoshihiro Yamashiro <me@xn--uist1idrju3i.jp>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Brings the applicable parts of OpenBlink/mrubyc-zephyr#11, #12, and #13 to the ESP-IDF component. The component stays on mruby/c
release3.4.1, mruby 3.4.0mrbc(RITE0300), and Registry version3.4.1.vendor/mrubyc, the existing examples, the existing defaults, andupload.ymlare unchanged.KconfigandCMakeLists.txtcover every mruby/c 3.4.1 configuration macro. Every option uses the upstream default, and macros that upstream treats as "undefined = off" are never passed as=0. Settings that change public struct layout (string width, NaN boxing,INT64, legacy macros, alloc profiling) are PUBLIC definitions, so consumers see the same layout. Allocator tuning is PRIVATE.MRBC_NO_STDIO,MRBC_DEBUG_REGS, disabling legacy value macros,MRBC_STRING_SIZE_T(16/32 bits),MRBC_ALLOC_FLI_BIT_WIDTH/SLI_BIT_WIDTH/IGNORE_LSBS/MIN_MEMORY_BLOCK_SIZE(validated byallocator_config.cat build time), andMRBC_NAN_BOXING(not withINT64; forces legacy value macros off).USE_STRING,ALLOC_24BIT,LITTLE_ENDIAN,REQUIRE_64BIT_ALIGNMENT; off forFLOAT_NONE,INT16,ALLOC_VMID,ALLOC_16BIT,BIG_ENDIAN,REQUIRE_32BIT_ALIGNMENT.USE_STRING=0,INT16, andALLOC_VMIDfail to build with unmodified 3.4.1 and stay read-only.fatal_hooks.candfatal_hooks.hare force-included only into component sources when enabled.OOM_POOL_STATSprints pool total/used/free beforehal_abort(pool allocator only).PANIC_ON_UNHANDLED_EXCEPTIONaborts on an exception that reachesmrbc_vm_end. PermanentTask.createVMs do not trigger it.test_app/footprint/is a C baseline with the same output ashello. Measured on ESP32 / ESP-IDF 6.1.1, the total image size is 112,720 bytes for C and 185,457 bytes for Rubyhello. The Zephyr numbers are not reused.README.md(bytecode, pool, cooperative scheduling, C bindings, task lifetime) and in.devin/wiki.json. Only behavior verified on 3.4.1 is documented. No new doc files are added..devin/is excluded from the Registry archive andtools/check_package.pyenforces this. The archive has 98 files.test_appprofiles (parity,nan_boxing,oom_*,exception_*), with QEMU checks of the expected markers and the abort for each fatal path.Local verification: test_app profiles build on IDF 5.5.6, 6.0.3, and 6.1.1. The QEMU fixtures pass. The vendor and bytecode checks, actionlint, zizmor, and ShellCheck pass. Not tested on hardware.
Link to Devin session: https://app.devin.ai/sessions/e98b4d5e1c444f2eb2952ea1f63111e1
Open in Devin Desktop: https://app.devin.ai/desktop/session/e98b4d5e1c444f2eb2952ea1f63111e1?variant=devin
Requested by: @uist1idrju3i
🟢 Devin fixed all 2 findings · Follow Devin's work