kirancodes.me
To Proof Maintenance & Beyond!

Description-Driven Code Generation using Attribute Grammars

Mahadevan Ganapathi, Charles N. Fischer

Abstract

The instruction-set of a target architecture is represented as a set of attribute-grammar productions. A code generator is 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.

Related papers