code wiki / _hdl_build / nx_scratch_wasm_gate.nx
nx_scratch_wasm_gate.nx
buildroot/runtime/_hdl_build/nx_scratch_wasm_gate.nx
about
nx_scratch_wasm_gate.nx -- R0.0b gate, NISHI all the way up. Forks the sovereign compiler ELFs to build
nx_scratch_probe.nx -> wasm, then EXECUTES it in the sovereign nx_wasm_vm and checks that the WASM-lane
nx_scratch hands out DISTINCT framed buffers (sp_probe == 1496014960, sp_gap == 128). Proves native<->wasm
scratch parity -- the multi-word-local idiom now works in the browser lane, no [i64;N] compiler feature.
license_tier: ORIGINAL (build-fork spine from nx_aw_push; VM-verify spine from nx_sha256_wasm_vm_gate)
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_gate_emit_lib.nxnx_wasm_vm.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
| 10 | const CWAT_ELF: *u8 = "/tmp/nx_compile_wat.sov.elf" |
| 11 | const WATC_ELF: *u8 = "/tmp/nx_wat_compiler.sov.elf" |
| 12 | const SRC_NX: *u8 = "/mnt/c/Users/elder/nishi-core/nxc2/runtime/nx_scratch_probe.nx" |
| 13 | const OUT_WAT: *u8 = "/tmp/scr.wat" |
| 14 | const OUT_WASM: *u8 = "/tmp/scr.wasm" |
| 15 | const KAT_PROBE: i64 = 1496014960 |
| 16 | const KAT_GAP: i64 = 128 |
functions
| 18 | func run_elf(elf: *u8, a1: *u8, a2: *u8) -> i64 |
| 38 | func main() -> i64 |