code wiki / _hdl_build / nx_bytes_eq.nx

nx_bytes_eq.nx

buildroot/runtime/_hdl_build/nx_bytes_eq.nx

1641 B31 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_bytes_eq.nx -- byte-identity comparator ORGAN (operator 2026-07-02: no shell -- this retires cmp/wc/diff from every lane). usage: nx_bytes_eq <a> <b> Prints sizes + IDENTICAL/first-diff; exit 0 iff byte-identical. The drift-kill primitive for the emitter-organ SSOT doctrine (emit to a compare path, nx_bytes_eq vs the canonical file). license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_bytes_eq.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 bw sys_write sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close bn sys_mmap ↻ sys_write ↻

structs

none

consts

none

functions

8func bw(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 1: main calls 1: sys_write
9func bn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
14func main(argc: i64, argv: *i64) -> i64