code wiki / (root) / nx_toolchain.nx

nx_toolchain.nx

buildroot/runtime/nx_toolchain.nx

5498 B169 linesdepth 6pulls 12 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_toolchain.nx -- unified entry point for the off-C tools. Replaces the binutils + qemu suite with a single binary that dispatches subcommands: nx readelf <path.elf> -- full ELF dump nx nm <path.elf> -- list symbols nx objdump <path.elf> -- section headers nx dis <path.bin> <off> -- disassemble bytes nx run <path.elf> -- load + simulate nx help -- list commands Compile this once into a tiny binary; it covers the entire off-C inspection / debug / run workflow. No more invoking 5+ separate binutils tools per session. Pairs with nxc_native_wrap (the bootstrap-verification binary) as the day-to-day developer-facing tool.

dependencies 8 imports · 0 importers

syscalls.nx nx_elf_read.nx nx_objdump.nx nx_nm.nx nx_readelf.nx nx_dis.nx nx_loader.nx nx_rv64_sim.nx nx_toolchain.nx

imports: syscalls.nxnx_elf_read.nxnx_objdump.nxnx_nm.nxnx_readelf.nxnx_dis.nxnx_loader.nxnx_rv64_sim.nx

imported by: nobody (leaf or entry point)

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

main nx_tc_help nx_tc_read_file sys_read nx_readelf_all nx_objdump_elf_header nx_elf_parse_header nx_elf_get_u16_le nx_elf_get_u64_le nx_elf_get_u32_le nx_objdump_putln nx_objdump_puts nx_objdump_puts ↻ nx_objdump_puthex64 nx_objdump_putdec nx_readelf_program_headers nx_elf_parse_header ↻ nx_readelf_get_phdr nx_elf_get_u32_le ↻ nx_elf_get_u64_le ↻ nx_fmt_to_fd nx_fmt_to_buf nx_fmt_int nx_fmt_hex nx_fmt_bytes nx_objdump_section_headers nx_elf_parse_header ↻ nx_objdump_putln ↻ nx_elf_read_shdr nx_elf_get_u32_le ↻ nx_elf_get_u64_le ↻ nx_elf_strtab_at nx_objdump_puts ↻ nx_objdump_putdec ↻ nx_objdump_puthex64 ↻ nx_elf_parse_header ↻ nx_nm_find_symtab nx_elf_read_shdr ↻ nx_nm_print nx_elf_parse_header ↻

structs

none

consts

none

functions

36func nx_tc_read_file(path: *u8, out_len: *i64) -> *u8
called by 1: main calls 1: sys_read
59func nx_tc_help(fd: i64) -> i64
called by 1: main
70func main(argc: i64, argv: *i64) -> i64