NASM
$ nasm Community Low RiskClassic portable x86 and x86-64 assembler generating ELF, Mach-O, COFF, and raw binary object files. Fast, deterministic, and completely non-interactive, though strictly plain-text in errors and limited to x86/x86-64 instruction sets.
brew install nasm Low-level local assembler invoked directly or via C/assembly build scripts.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Fully non-interactive with -E preprocessing and -Werror, but provides no JSON output, no --dry-run, and terser legacy diagnostics.
- Plain-text stderr diagnostics only
- Supports
-Epreprocess-only and-hfinspection
Zero network or credential surface; local file assembly with explicit -o output paths.
- Purely local file processing
Lightweight C binary available across macOS, Linux, and Windows, though output format flags vary per OS.
- Widely packaged small binary (
brew,apt, release zips)
Fast and reliable for x86/x86-64 assembly, but inapplicable to ARM64/RISC-V targets.
- Limited strictly to x86 and x86-64 architectures
Long-standing Netwide Assembler project under BSD-2-Clause.
- Official
netwide-assembler/nasmrepository
Classic HTML manual and -h/-hf flags; sparse modern examples.
- Official NASM manual at nasm.us/docs.php
Security, Auth & Guardrails
No credentials required; operates strictly on local assembly source files.
BSD-2-Clause open-source assembler; completely free.
# NASM (nasm) Agent Rules - Always verify target format (`elf64`, `macho64`, `win64`) with `nasm -hf` and pass `-Werror`. - Remember NASM targets x86/x86-64 only; use `as`/`clang` for ARM64/AArch64 assembly.
Agent-Ready Command Recipes
Safe Read-Only Queries
nasm -hf
Prints all supported output formats (elf64, macho64, win64, bin, etc.) without assembling files.
nasm -E boot.asm
Expands NASM macros and %include directives without emitting an object file.
Controlled Writes & Previews
nasm -f elf64 -Werror -o build/kernel.o kernel.asm
Assembles kernel.asm into build/kernel.o while treating warnings as errors.
Strengths for Agents
- + Fast, deterministic x86/x86-64 assembler with
-Emacro preprocessing and-Werror. - + Zero runtime dependencies and zero network/auth requirements.
Caveats & Pitfalls
- ! No JSON diagnostics and limited strictly to x86/x86-64 (not ARM64/Apple Silicon native assembly).
- ! Requires selecting the exact host object format (
elf64,macho64,win64) explicitly.