code wiki / _hdl_build / nx_eoe_meta.nx

nx_eoe_meta.nx

buildroot/runtime/_hdl_build/nx_eoe_meta.nx

8343 B115 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind tooltopic eoe
docsdependenciesstructsconstsfunctions

about

nx_eoe_meta.nx -- Generates an emitter that writes an organ producing 42, ensuring end-to-end code generation and execution.

dependencies 3 imports · 0 importers

nx_gate_gn.nx nx_gate_base.nx nx_syscalls.nx nx_eoe_meta.nx

imports: nx_gate_gn.nxnx_gate_base.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main gw sys_write sys_mmap sys_openat_wr sys_write ↻ sys_close write_sentinel_o sys_openat_wr ↻ ww sys_write ↻ sys_close ↻ meta_emit_emitter sys_openat_wr ↻ ww ↻ sys_close ↻ file_exists sys_openat_rd sys_close ↻ god_build sys_fork sys_openat_wr ↻ sys_dup3 sys_mmap ↻ sys_execve sys_exit sys_wait4 gn read_i64 sys_mmap ↻ sys_read_file sys_openat_rd ↻ sys_lseek sys_mmap ↻ sys_read sys_close ↻ sys_exit ↻

structs

none

consts

18const O_VALUE: i64 = 42

functions

20func grow(name: *u8, ok: i64) -> i64 { if ok==1 { gw(" PASS " as *u8) } else { gw(" FAIL " as *u8) } gw(name); gw("
calls 1: gw
22func ww(fd: i64, s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(fd,s,n); return 0 }
24func write_sentinel_o(opath: *u8) -> i64
32func god_build(name: *u8) -> i64
44func file_exists(p: *u8) -> i64 { let fd: i64=sys_openat_rd(p); if fd<0 { return 0 } sys_close(fd); return 1 }
called by 1: main calls 2: sys_mmapsys_read_file
45func read_i64(path: *u8) -> i64
53func meta_emit_emitter(epath: *u8) -> i64
73func main() -> i64