code wiki / (root) / nx_x86_64_test.nx

nx_x86_64_test.nx

buildroot/runtime/nx_x86_64_test.nx

2332 B67 linesdepth 4pulls 5 transitivereach 0 importersview sourcekind gate/prooftopic x86
docsdependenciesstructsconstsfunctions

about

nx_x86_64_test.nx -- foundation smoke for the x86_64 emit library. Hand-sequences nx_x86_64 primitives to build a write+exit program asm file, prints it to stdout. The companion bash wrapper then assembles + links + runs the produced binary natively on x86_64. Two layers verified by this smoke: 1. Each emit primitive produces the expected asm text (this file). 2. The asm assembles + runs natively (bench/nx_x86_64_smoke.sh). The hand-built asm is the canonical "hello world" + sys_exit(0).

dependencies 3 imports · 0 importers

syscalls.nx nx_outbuf.nx nx_x86_64.nx nx_x86_64_test.nx

imports: syscalls.nxnx_outbuf.nxnx_x86_64.nx

imported by: nobody (leaf or entry point)

structs

none

consts

none

functions

17func main() -> i64