Minds at UW (University of Wisconsin) · 1980 · 38 citations · 0 references
Open access
ComputingComputer EngineeringComputer ScienceCompilersComputer ArchitectureProgramming LanguagesAbstract Syntax TreesCode GenerationCompiler ConstructionIntermediate RepresentationParsingSyntax ParsingAbstract Syntax Tree GenerationCode OptimizationCompiler DesignHigh-level Intermediate RepresentationMachine-dependent OptimizationPeephole OptimizationRetargetable Code GenerationSyntax-directed Code Generation
Attribute grammars are used to specify translations from an intermediate representation (a linear representation of parse-trees) to a target code representation of programs. A code generator may be obtained automatically for any compiler using attributed parsing techniques. A compiler built on this model can automatically perform most popular machine-dependent optimizations, including peephole optimizations. The code generator is also easily retargetable to different machine architectures. Implementations of a code generator based on this model exist for the VAX-11/780 and the PDP-11/70.