session
Update 6: SSA IR, x86-64 backend & interpreter
The compiler’s architecture took shape:
- A typed SSA intermediate representation: basic blocks, explicit terminators, an effect-set per function.
- Full AST → IR lowering: control flow, function calls, f-string concatenation, mutable variables via alloca.
- An IR interpreter (
run) for instant iteration with no external tools. - A MASM x86-64 backend (
build) with the Windows x64 calling convention, inline print/panic runtime, and no C runtime dependency.
Seven gnarly bugs were fixed in the process, including recursive calls crashing from unpreserved non-volatile registers, and f-strings printing memory addresses instead of string contents.