1
CS553 Lecture Register Allocation II 1
Prelude
The Sears Tower in Chicago was the world’s tallest building from 1974 until 1998. Fun facts– The Sears Tower contains enough concrete to build an eight-lane, five- mile-long highway, enough steel to build 50,000 automobiles, and enough telephone wiring to wrap around the world 1.75 times. – At the very top of the building, the maximum wind drift is just one foot. – Six roof-mounted robotic window-washing machines clean all 16,1000 windows on the Sears tower. – My son Kevin visited the “Serious” tower no less than 5 times during the two years we lived in Chicago.
CS553 Lecture Register Allocation II 2
Register Allocation II
Last time– Register allocation – Global allocation via graph coloring
Today– More register allocation – Allocation across procedure calls
CS553 Lecture Register Allocation II 3
Interference Graph Allocators
Chaitin Briggs
CS553 Lecture Register Allocation II 4
Register Allocation and Procedure Calls
Problem– Register values may change across procedure calls – The allocator must be sensitive to this
Two approaches– Work within a well-defined calling convention – Use interprocedural allocation (not covering this)