nx_smoke_nxc_pipeline.nx
buildroot/runtime/nx_smoke_nxc_pipeline.nx
about
Replay nxc.nx's pipeline on the baked-in demo, reporting at
each stage so we can see exactly where stage 4 is failing.
Returns:
1 = lex_source returned NULL
2 = parse_module returned NULL
3-9 = opt/regalloc/riscv stage threw something we'd need to
instrument differently (just runs)
100 = OK, asm_pos was 0 (nothing emitted)
101 = OK, asm_pos > 0, code_len == 0
102 = OK, asm_pos > 0, code_len < 0 -- distinguished below
200 = code_len == -1 (unknown mnemonic)
201 = code_len == -2 (pass 1 fail)
202 = code_len == -3 (pass 2 fail)
N = code_len when 0 < N < 100 (success)
dependencies 12 imports · 0 importers
diagram shows first 10 each side; +2 more imports, +0 more importers in the complete lists below.
imports: nx_syscalls.nxnx_types.nxnx_lex_kinds.nxnx_outbuf.nxnx_ir.nxnx_tokenizer.nxnx_parse.nxnx_opt.nxnx_regalloc.nxnx_riscv.nxcrt0.nxnxasm_v2.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 36 | func main() -> i64 |