Loading the code workspace…
Implement x86 assembly generation from three-address code.
Implement instruction selection:
Generate code for:
Handle operand types:
$42 (immediate)-4(%ebp) (stack offset) or var_name (global)Output valid assembly:
gcc or nasmEmitting real x86-64 from IR is what Clang, GCC, and Go do as their final act on most servers and laptops on Earth. Doing it by hand teaches the AT&T/Intel syntax split, why registers are precious, and what 'the compiler generated bad code' bug reports actually involve — knowledge that Compiler Explorer made famous.