发明名称 Register allocation and code spilling using interference graph coloring
摘要 An improved method is provided for performing register allocation in a compiler. This method determines the allocation of a plurality R of registers of a processor for use during the execution of a software program. The register allocation process is treated as a graph-coloring problem, such that an interference graph is constructed for the software program, the graph is simplified, and an R-coloring the interference graph to the extent possible is attempted. Then, spill code is inserted in the software program each for each uncolored node of the graph, a new interference graph is constructed, and the process is repeated. During the simplification process, nodes with degree greater than or equal to R are removed from the graph in an order dictated by a spill cost metric. During the coloring process, these same nodes are reinserted in the graph in an order dictated by reapplying the spill cost metric.
申请公布号 US2005039175(A1) 申请公布日期 2005.02.17
申请号 US20030640549 申请日期 2003.08.13
申请人 TATGE REID E.;HUMPHREYS JONATHAN F. 发明人 TATGE REID E.;HUMPHREYS JONATHAN F.
分类号 G06F9/45;(IPC1-7):G06F9/45 主分类号 G06F9/45
代理机构 代理人
主权项
地址