code wiki / _hdl_build / nx_race_native.nx

nx_race_native.nx

buildroot/runtime/_hdl_build/nx_race_native.nx

1257 B30 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tooltopic race
docsdependenciesstructsconstsfunctions

about

nx_race_native.nx -- "OURS" in the cross-language RACE: the SAME workload (sum of i for 1..120,000,000) as the IR program, compiled SOVEREIGN (nx_cc -> nxasm_x86, no gcc) and run as a direct native loop. Timed head-to-head vs the exported C/JS/Python/Perl/Java versions of the same program. The answer (200000010000000) must match the Nishi IR-interpreted truth and every exported language (correctness), while wall-time shows where our sovereign output sits vs the mainstream toolchains. license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_race_native.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 putn sys_mmap sys_write sys_write ↻

structs

none

consts

7const K_MAGIC_50000000: i64 = 50000000
8const K_MAGIC_48271: i64 = 48271
9const K_MAGIC_2147483647: i64 = 2147483647

functions

10func putn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
23func main() -> i64
calls 2: putnsys_write