|
|
|
11.6.5 Register Assignment and Reassignment
Register Allocation prioritizes which variables to be kept in registers
Stored value same Variables and expressions not "live" Heuristics
Belady's Algorithm adapted for Register Allocation
Create A Node
Else if there is an acceptable register, use it
Else use that register whose value won't be used for the longest
time (spill the value)
|