Lecture 13: Live-Variable Analysis. Compiling to Register Machines
Continuing Lecture 12
Live Variable Analysis
Register Machines
Register machines are an alternative to compilation to stack-based machines in Lecture 09; they are closer to modern processors.
Compiling to Register Machines
Control-Flow Graph to Assembly with Global Variables
Register Allocation using Liveness Information
Memory Layout for Compiled Program
Stack Frames and Procedure Calls
Continued in Lecture 14
References
- Compiler Construction by Niklaus Wirth, chapters 9,10, 11
- Tiger book, Chapters 7-11, 17