Jump to content

Chaitin's algorithm

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Sander~enwiki (talk | contribs) at 23:31, 9 April 2007 (Initial de-stubified version). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Chaitin's algorithm is a bottom-up, graph coloring register allocation algorithm that uses cost/degree as it's spill metric. It is named after its designer, Gregory Chaitin. Chaitin's algorithm was the first register allocation algorithm that made use of coloring of the interference graph for both register allocations and spilling.

Chaitin's algorithm was presented on the 1982 SIGPLAN Symposium on Compiler Construction, and published in the symposium proceedings. It was extension of an earlier 1981 paper on the use of graph coloring for register allocation. While Chaitin's original paper focused on the the use of the algorithm in a PL/I compiler, the algorithm is usable on any language. Chaitin's algorithm formed the basis of a large section of research into register allocators.

References