๐”– Bobbio Scriptorium
โœฆ   LIBER   โœฆ

Register allocation and spilling via graph coloring

โœ Scribed by Chaitin, Gregory


Book ID
118021154
Publisher
Association for Computing Machinery
Year
2004
Weight
700 KB
Volume
39
Category
Article
ISSN
0362-1340

No coin nor oath required. For personal study only.

โœฆ Synopsis


In a previous paper we reported the successful use of graph coloring techniques for doing global register allocation in an experimental PL/I optimizing compiler. When the compiler cannot color the register conflict graph with a number of colors equal to the number of available machine registers, it must add code to spill and reload registers to and from storage. Previously the compiler produced spill code whose quality sometimes left much to be desired, and the ad hoc techniques used took considerable amounts of compile time. We have now discovered how to extend the graph coloring approach so that it naturally solves the spilling problem. Spill decisions are now made on the basis of the register conflict graph and cost estimates of the value of keeping the result of a computation in a register rather than in storage. This new approach produces better object code and takes much less compile time.


๐Ÿ“œ SIMILAR VOLUMES


Register allocation via coloring
โœ Gregory J. Chaitin; Marc A. Auslander; Ashok K. Chandra; John Cocke; Martin E. H ๐Ÿ“‚ Article ๐Ÿ“… 1981 ๐Ÿ› Elsevier Science ๐ŸŒ English โš– 827 KB