nx_ccheck.nx
buildroot/runtime/nx_ccheck.nx
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
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
| 9 | const K_MAGIC_65536: i64 = 65536 |
functions
| 11 | func cp(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 14 | func cc_one(name: *u8) -> i64 |
| 40 | func main() -> i64 |