code wiki / _hdl_build / nx_codegen_exec.nx

nx_codegen_exec.nx

buildroot/runtime/_hdl_build/nx_codegen_exec.nx

3222 B78 linesdepth 2pulls 2 transitivereach 3 importersview sourcekind librarytopic codegen
docsdependenciesstructsconstsfunctions

about

nx_codegen_exec.nx -- shared build/run primitives for the team's codegen- integration capabilities (the differential gate + the candidate self-host verifier both build on this). Pure NishiLang fork/exec: invoke a compiler, link with gcc, run an ELF, capture exit codes -- the sovereign build pipeline the team drives to improve codegen WITHOUT a human running shell. DRY (Cardinal #15).

dependencies 1 imports · 3 importers

nx_syscalls.nx nx_codegen_exec.nx nx_codegen_diff_gate.nx nx_codegen_improve_loop.nx nx_self_host_candidate_verify.nx

imports: nx_syscalls.nx

imported by: nx_codegen_diff_gate.nxnx_codegen_improve_loop.nxnx_self_host_candidate_verify.nx

structs

none

consts

none

functions

9func gd_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 4: maingd_emitmainmain calls 1: sys_write
10func gd_emit(name: *u8, v: i64) -> i64
23func gd_exec(argv: *i64, out_path: *u8, quiet: i64) -> i64
49func gd_build(compiler: *u8, src: *u8, sout: *u8, eout: *u8) -> i64
66func gd_run(eout: *u8) -> i64
called by 1: gd_build_run calls 2: sys_mmapgd_exec
74func gd_build_run(compiler: *u8, src: *u8, sout: *u8, eout: *u8) -> i64
called by 3: mainmainmain calls 2: gd_buildgd_run