code wiki / _hdl_build / nx_race_native.nx
nx_race_native.nx
buildroot/runtime/_hdl_build/nx_race_native.nx
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
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
| 7 | const K_MAGIC_50000000: i64 = 50000000 |
| 8 | const K_MAGIC_48271: i64 = 48271 |
| 9 | const K_MAGIC_2147483647: i64 = 2147483647 |
functions
| 10 | func putn(v: i64) -> i64 |
| 23 | func main() -> i64 |