Publication | Open Access
Optimal Code Generation for Expression Trees
239
Citations
12
References
1976
Year
EngineeringCompiler TechnologyComputer ArchitectureComputational ComplexityOptimal CodeSoftware AnalysisParallel ComputingCompilersDynamic CompilationTree LanguageCode GenerationComputer EngineeringTransform Expression TreesOptimal Code GenerationRegister MachinesDynamic Programming LanguageComputer ScienceProgram OptimizationCode RepresentationOptimizing CompilerProgram AnalysisFormal Methods
This paper discusses algorithms which transform expression trees into code for register machines. A necessary and sufficient condition for optimality of such an algorithm is derived, which applies to a broad class of machines. A dynamic programming algorithm is then presented which produces optimal code for any machine in this class; this algorithm runs in time linearly proportional to the size of the input.
| Year | Citations | |
|---|---|---|
Page 1
Page 1