Tier 3 — Back-end

Sinh mã & tối ưu: IR, optimization, bytecode VM, control flow, register allocation.

Tier này dạy gì?

Cần Tier 2 — Semantics trước. Liên hệ OperatingSystems, graph.

Lộ trình 5 bài

Lesson 11
Vì sao cần IR, three-address code, sinh từ AST, SSA, basic block & control flow graph.
Lesson 12
Constant folding/propagation, dead code elimination, CSE, algebraic simplification, strength reduction.
Lesson 13
Bytecode, máy ảo ngăn xếp, biên dịch AST → bytecode, fetch-decode-execute, RPN — nhanh hơn tree-walking.
Lesson 14
if/while → JMP/JMPF + label, backpatching, control flow graph, short-circuit && ||.
Lesson 15
Liveness, graph coloring, spilling; mục tiêu native/WASM/JVM, AOT vs JIT — tổng kết pipeline.