ACM SIGPLAN Notices · 1982 · 10 citations · 11 references
ComputingComputer EngineeringComputer ScienceCompilersComputer ArchitectureProgramming LanguagesAbstract Syntax TreesCode GenerationCompiler ConstructionInstruction SelectionParsingSyntax AnalysisCompiler-based GenerationLocal Instruction SelectionMachine Description LanguagesPattern-based Instruction SelectionSyntax-directed Code Generation
We have constructed a local code generator for the VAX-11 2 using a parser-like instruction pattern matcher. The code generator replaces the second pass of the UNIX 3 Portable “Crdquo; compiler. This paper describes the design of the code generator and the special considerations imposed by the pattern matching process. We summarize the structure of the machine description grammar and its associated semantic actions, as well as the tools we developed to manipulate the large VAX description. In our experience, this approach makes the instruction selection phase of the compiler easier and faster to implement, and more likely to be correct than traditional techniques.
11
The Computer Science Department.
Hubert Tolman · 1971 · 552 citations
The Generation of Optimal Code for Arithmetic Expressions
Ravi Sethi, Jeffrey D. Ullman · Journal of the ACM · 1970 · 295 citations · Full text
A new method for compiler code generation
R. Steven Glanville, Susan L. Graham · 1978 · 177 citations