mirror of
https://github.com/imjasonh/nescript
synced 2026-07-08 08:55:38 +00:00
The compile benchmark was building each example via an in-memory pipeline that mirrored the CLI except for one thing — it always handed the linker empty `PrgBank::empty(...)` slots. That stayed silently fine until `uxrom_user_banked.ne` started nesting a function inside a `bank` block: the IR codegen emits `JSR __tramp_step_animation` at the call site, and with no trampoline request on the `Extras` bank the assembler's fixup pass panics with "unresolved label". Local `cargo test` missed it because the bench is only compiled under `--all-targets`, which is what CI runs. Fix: reconstruct the same `banked_streams` + `bank_trampolines` dance `src/main.rs` already does for the real build path, and thread the header format through `with_header` for parity. https://claude.ai/code/session_01MaNVcDmK9gsspRkdxowQAM |
||
|---|---|---|
| .. | ||
| compile.rs | ||