code wiki / _hdl_build / nx_codegen_exec.nx
nx_codegen_exec.nx
buildroot/runtime/_hdl_build/nx_codegen_exec.nx
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
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
| 9 | func 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 } |
| 10 | func gd_emit(name: *u8, v: i64) -> i64 |
| 23 | func gd_exec(argv: *i64, out_path: *u8, quiet: i64) -> i64 called by 3: gd_buildgd_runcil_race calls 9: sys_mmapsys_forksys_openat_wrsys_dup3sys_closesys_execve+3 |
| 49 | func gd_build(compiler: *u8, src: *u8, sout: *u8, eout: *u8) -> i64 |
| 66 | func gd_run(eout: *u8) -> i64 |
| 74 | func gd_build_run(compiler: *u8, src: *u8, sout: *u8, eout: *u8) -> i64 |