Software Practice and Experience · 1984 · 36 citations · 10 references
ComputingComputer EngineeringComputer ScienceAlgorithmsCompilersOptimizationCode GenerationCompiler ConstructionControl-flow AnalysisData-flow AnalysisInstruction SchedulingRegister AllocationIntermediate Code GenerationMachine-dependent OptimizationMicroarchitectural OptimizationPeephole OptimizationRegister AssignmentRegistersRetargetable Code Generation
Abstract Emerging peephole optimizers can relieve code generators of much case analysis, but delaying code generation decisions requires register allocation algorithms that accept object code instead of the more usual intermediate code. This paper describes two programs that implement such algorithms for a retargetable optimizing compiler. In a machine‐independent fashion, they allocate and assign registers, eliminate common subexpressions (including often‐missed machine‐specific ones), identify dead variables, and define windows for the companion peephole optimizer. Their techniques for handling machine‐specific data should generalize to other optimizations as well.
10
Computer Languages · 1979 · 1.2K citations
Register allocation via coloring
Gregory J. Chaitin, Marc Auslander, Ashok K. Chandra et al. · Computer Languages · 1981 · 731 citations
A new method for compiler code generation
R. Steven Glanville, Susan L. Graham · 1978 · 177 citations