A code generation interface for ANSI C
Authors:
- 1 September 1991
- journal article
- Published by Wiley in Software: Practice and Experience
- Vol. 21 (9) , 963-988
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.Keywords
This publication has 9 references indexed in Scilit:
- The design of very fast portable compilersACM SIGPLAN Notices, 1989
- Code generation using tree matching and dynamic programmingACM Transactions on Programming Languages and Systems, 1989
- A language for writing code generatorsACM SIGPLAN Notices, 1989
- The programming language oberonSoftware: Practice and Experience, 1988
- Producing good code for the case statementSoftware: Practice and Experience, 1985
- Code selection through object code optimizationACM Transactions on Programming Languages and Systems, 1984
- Using Peephole Optimization on Intermediate CodeACM Transactions on Programming Languages and Systems, 1982
- Machine-independent PASCAL code optimizationACM SIGPLAN Notices, 1979
- Abstract machine modelling to produce portable software—a review and evaluationSoftware: Practice and Experience, 1972