code wiki / _hdl_build / nx_emu_probe_wasm_gate.nx
nx_emu_probe_wasm_gate.nx
buildroot/runtime/_hdl_build/nx_emu_probe_wasm_gate.nx
about
nx_emu_probe_wasm_gate.nx -- R0.0 WASM half, NISHI all the way up.
Builds nx_emu_probe.nx -> emu.wasm by FORKING the two sovereign compiler ELFs (nx_compile_wat +
nx_wat_compiler) -- the nx_aw_push fork-a-sovereign-sub-ELF pattern, NOT a .sh script -- then EXECUTES
p_probe inside the sovereign nx_wasm_vm and checks the result == the native KAT (8081519, from
nx_emu_probe_gate). Proves the emulator-shaped kernel compiles to faithful wasm through the fully
sovereign pipeline. The build glue is this organ; the verify is nx_wasm_vm. No grep/xxd/.sh anywhere.
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
| 13 | const CWAT_ELF: *u8 = "/tmp/nx_compile_wat.sov.elf" |
| 14 | const WATC_ELF: *u8 = "/tmp/nx_wat_compiler.sov.elf" |
| 15 | const SRC_NX: *u8 = "/mnt/c/Users/elder/nishi-core/nxc2/runtime/nx_emu_probe.nx" |
| 16 | const OUT_WAT: *u8 = "/tmp/emu.wat" |
| 17 | const OUT_WASM: *u8 = "/tmp/emu.wasm" |
| 18 | const KAT: i64 = 8081519 |
functions
| 20 | func run_elf(elf: *u8, a1: *u8, a2: *u8) -> i64 |
| 40 | func main() -> i64 |