Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

NASM

$ nasm Community Low Risk
NASM · Code & DevOps · BSD-2-Clause · macos / linux / windows

Classic 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.

FCRS-1.0 Score
68 /100
Usable w/ Caveats
Medium Confidence
Zero-Friction Install
brew install nasm
CLI vs MCP Decision CLI Only

Low-level local assembler invoked directly or via C/assembly build scripts.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 12 / 25

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 -E preprocess-only and -hf inspection
Trust & Safety 19 / 25

Zero network or credential surface; local file assembly with explicit -o output paths.

  • Purely local file processing
Setup & Portability 12 / 15

Lightweight C binary available across macOS, Linux, and Windows, though output format flags vary per OS.

  • Widely packaged small binary (brew, apt, release zips)
Utility & Efficiency 10 / 15

Fast and reliable for x86/x86-64 assembly, but inapplicable to ARM64/RISC-V targets.

  • Limited strictly to x86 and x86-64 architectures
Maintenance & Lineage 8 / 10

Long-standing Netwide Assembler project under BSD-2-Clause.

  • Official netwide-assembler/nasm repository
Docs & Verifiability 7 / 10

Classic HTML manual and -h/-hf flags; sparse modern examples.

  • Official NASM manual at nasm.us/docs.php

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

No credentials required; operates strictly on local assembly source files.

Side Effects
Read-Only Local Write
Cost & Quotas

BSD-2-Clause open-source assembler; completely free.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

List supported output object formats
nasm -hf

Prints all supported output formats (elf64, macho64, win64, bin, etc.) without assembling files.

Preprocess assembly source to stdout
nasm -E boot.asm

Expands NASM macros and %include directives without emitting an object file.

Controlled Writes & Previews

Assemble x86-64 source to an ELF64 object file
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 -E macro 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.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI