code wiki / (root) / _offc_probe_struct.nx

_offc_probe_struct.nx

buildroot/runtime/_offc_probe_struct.nx

707 B30 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind probetopic offc
docsdependenciesstructsconstsfunctions

about

Tests nxc.elf codegen for: struct allocation, field write, field read, and a function call. If this works but regalloc_test.nx doesn't, the bug is in nxc.elf's handling of more complex struct constructs.

dependencies 1 imports · 0 importers

syscalls.nx _offc_probe_struct.nx

imports: syscalls.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main add_xyz

structs

7struct Point

consts

none

functions

13func add_xyz(p: *Point) -> i64
called by 1: main
17func main() -> i64
calls 1: add_xyz