Conversation
Phase 1 of #27 (ARM cross-compilation toolchain): synth compile --link: - New --link flag invokes arm-none-eabi-gcc after compilation - Auto-detects arm-none-eabi-gcc/ld in PATH - Generates linker script with Meld integration sections - Produces firmware.elf from module.o + kiln-builtins.a - --builtins <path> specifies the kiln-builtins object file kiln-builtins stub: - tests/integration/kiln_builtins_stub.c — minimal C implementation - __meld_dispatch_import: returns 0 for all imports (test stub) - __meld_get_memory_base: returns __wasm_memory_start linker symbol End-to-end integration test: - tests/integration/bare_metal_e2e.sh - WAT → synth compile → module.o → link → firmware.elf → validate - Skips gracefully if arm-none-eabi-gcc not in PATH Closes #27 Implements: CC-003 Implements: XC-001 Trace: skip Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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
Phase 1 of #27 — turns synth into an end-to-end firmware builder.
synth compile --link--linkflag auto-invokesarm-none-eabi-gccafter compilation--builtins <path>specifies kiln-builtins object for linkingfirmware.elfready for Renode/hardwarekiln-builtins stub
tests/integration/kiln_builtins_stub.c— minimal C ABI bridge__meld_dispatch_import(uint32_t)— returns 0 (test stub)__meld_get_memory_base()— returns__wasm_memory_startEnd-to-end test
tests/integration/bare_metal_e2e.sh— full pipeline: WAT → .o → link → firmware.elf → validateCloses #27
Test plan
cargo test --workspace— 851 tests, 0 failurescargo clippy— cleancargo fmt --check— clean🤖 Generated with Claude Code