code wiki / _hdl_build / nx_eff_probe.nx

nx_eff_probe.nx source

↩ module page · 11 lines · 391 B

1// nx_eff_probe.nx -- throwaway bisect probe: does nx_eff_conv compile on the NAS toolchain? 2import "nx_eff_conv.nx" 3import "nx_syscalls.nx" 4const K_MAGIC_1000000: i64 = 1000000 5const K_MAGIC_1500: i64 = 1500 6func main() -> i64 { 7 let c: i64 = efl_cost_cents(K_MAGIC_1000000, 0, 0, 0) 8 if c == K_MAGIC_1500 { sys_write(1, "PROBE-OK-1500\n" as *u8, 14) } 9 sys_exit(0) 10 return 0 11}