code wiki / (root) / nx_ccheck.nx

nx_ccheck.nx

buildroot/runtime/nx_ccheck.nx

2736 B48 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_ccheck.nx -- sovereign COMPILE-CHECK for the WRITING HUB. Operator 2026-07-01: "build into the nishi ecosystem the required functionality." The Nishi shell / nx_sov_build_run can build+run any organ, but a DAEMON (nx_writer_serve) would run+block -- so there was no way to just ASK "does this source compile?". This is that tool: for each target it fork+execs nx_cc_sovereign on runtime/<name>.nx, DUPs the child's stdout to a drained pipe (so the ~125k-line asm never floods), reaps the real EXIT code, and prints CC-OK / CC-FAIL (compiler errors still hit stderr, visible). NO-ARG so nx_sov_build_run drives it directly. license_tier: ORIGINAL module: nishi-core.tools.ccheck

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_ccheck.nx

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

main cp sys_write cc_one sys_mmap sys_pipe2 sys_fork sys_dup3 sys_close sys_execve sys_exit sys_read sys_wait4 wait_exit_code cp ↻ sys_exit ↻

structs

none

consts

9const K_MAGIC_65536: i64 = 65536

functions

11func cp(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 2: cc_onemain calls 1: sys_write
14func cc_one(name: *u8) -> i64
40func main() -> i64