code wiki / _hdl_build / nx_aliasfix_gate.nx
nx_aliasfix_gate.nx
buildroot/runtime/_hdl_build/nx_aliasfix_gate.nx
about
nx_aliasfix_gate.nx -- the GATE that proves T#nx-int-alias-size-0 is fixed, end to end, with the
REBUILT sovereign toolchain (compiler /tmp/nx_cc_aliasfix.elf = nx_nxc.nx with alias resolution +
assembler /tmp/nxasm_x86_v2.elf = nxasm with the raised label cap). Builds+runs 4 modules and reads
each exit reliably via sys_wait4 (no shell $? trap). Expected: all exit 0. NO gcc, NO .sh.
license_tier: ORIGINAL
dependencies 1 imports · 0 importers
imports: nx_syscalls.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
| 8 | func ag_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 9 | func ag_putn(v: i64) -> i64 { let bb: *u8 = sys_mmap(28); var m: i64=v; if m<0{m=0-m;sys_write(1,"-" as *u8,1)} let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48;k=1} while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1} var i: i64=0; while i<k{bb[i]=t[k-1-i];i=i+1} sys_write(1,bb,k); return 0 } |
| 10 | func ag_cat(d: *u8, o: i64, s: *u8) -> i64 { var i: i64=0; while s[i]!=(0 as u8){d[o+i]=s[i];i=i+1} return o+i } called by 1: ag_build_run |
| 12 | func ag_run(path: *u8, argv: *i64, redir_out: i64, redir_err: i64) -> i64 |
| 25 | func ag_filesize(path: *u8) -> i64 |
| 32 | func ag_build_run(name: *u8, src: *u8, cc: *u8, as_tool: *u8, devnull: i64) -> i64 |
| 48 | func main() -> i64 |