Retargetable code generation and optimization using attribute grammars
Mahadevan Ganapathi · Minds at UW (University of Wisconsin) · 1980
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.