Spec M34 — examples/minimal: the smallest executable and what it costs (owner, 2026-09-03)

Program: i64 main() { return 0; }. The point is the number, measured reproducibly, per target.

Measured baseline (macOS 26.6 arm64, 2026-09-03) #

metric--exe.o + ld
file size16 692 B16 840 B
__text28 B28 B
layoutone 16 KiB __TEXT page (header + load commands + code) + 308 B __LINKEDIT (symtab, ad-hoc signature)same shape
max RSS (/usr/bin/time -l, 5 runs)1 327 104 B
physical footprint at exit (vmmap)~1.0 MB
the process's own mappings32 KiB (2 pages)

Everything above 32 KiB is dyld + libSystem from the shared cache; the floor on macOS is the page size plus the signature, and static executables are killed by the kernel (M0.5).

Deliverables #

Acceptance #

sh examples/minimal/measure.sh prints the table; the ceilings hold in make check; the guide page renders on the site.

Edit this page