A code generation interface for ANSI C
Christopher W. Fraser, David R. Hanson · Software Practice and Experience · 1991
Abstract 1cc is a retargetable, production compiler for ANSI C; it has been ported to the VAX, Motorola 68020, SPARC, and MIPS R3000, and some versions have been in use for over a year and a half. It is smaller and faster than generally available alternatives, and its local code is comparable. This paper describes the interface between the target‐independent front end and the target‐dependent back ends. The interface consists of shared data structures, a few functions, and a dag language. While this approach couples the front and back ends tightly, it results in efficient, compact compilers. The interface is illustrated by detailing a code generator that emits naive VAX code.
Cited by 68 works. doi:10.1002/spe.4380210906
Authors
References
- Code generation using tree matching and dynamic programming
- A retargetable compiler for ANSI C
- Using and Porting GNU CC
- Code selection through object code optimization
- The programming language oberon
- VAX architecture reference manual
- Machine-independent PASCAL code optimization
- Using Peephole Optimization on Intermediate Code
- Pascal: The Language and Its Implementation
- Producing good code for the case statement