Spec M3 — globals, global arrays, strings, #include, #define, arena, data sections

Prerequisite: M2 closed and reviewed. Scope: everything a real program (the M4 tokenizer and later mc.mc) needs in terms of static data and modularization.

Parser #

Codegen #

Library #

Tests #

Acceptance #

make stage0 && make stage0-san && make budget && make test green (all M1–M3 tests); otool -r and nm -m of the 021-strings .o showing l_str0 in __cstring and PAGE21/ PAGEOFF12 relocs; --dump-syms deterministic. Report lines per file and the total.

Edit this page