ACM Transactions on Design Automation of Electronic Systems · 1996 · 30 citations · 23 references
ComputingComputer EngineeringComputer ScienceAlgorithmsEmbedded SystemsOptimizationCode GenerationControl-flow AnalysisData-flow AnalysisInstruction SchedulingRegister AllocationLoop OptimizationRegister Assignment
One of the challenging tasks in code generation for embedded systems is register assignment. When more live variables than registers exist, some variables will necessarily be accessed from data memory. Because loops are typically executed many times and are often time-critical, good register assignment in loops is exceedingly important as accessing data memory can degrade performance. The issue of finding an optimal register assignment to loops has been open for some time. In this article, we present a technique for optimal (i.e., spill minimizing) register assignment to loops. First we present a technique for register assignment to architecture styles that are characterized by a consolidated register file. Then we extend the technique to include architecture styles that are characterized by distributed memories and/or a combination of general- and special-purpose registers. Experimental results demonstrate that although the optimal algorithm may be computationally prohibitive, heuristic versions obtain results with performance better than that of an existing graph coloring approach.
23
Register allocation via coloring
Gregory J. Chaitin, Marc Auslander, Ashok K. Chandra et al. · Computer Languages · 1981 · 731 citations
REAL: a program for REgister ALlocation
Fadi Kurdahi, Alice C. Parker · 1987 · 312 citations
Richard Stallman · 1998 · 185 citations