A retargetable compiler for ANSI C
- 1 October 1991
- journal article
- Published by Association for Computing Machinery (ACM) in ACM SIGPLAN Notices
- Vol. 26 (10), 29-43
- https://doi.org/10.1145/122616.122621
Abstract
Lcc is a new retargetable compiler for ANSI C. Versions for the VAX, Motorola 68020, SPARC, and MIPS are in production use at Princeton University and at AT&T Bell Laboratories. With a few exceptions, little about lcc is unusual --- it integrates several well engineered, existing techniques --- but it is smaller and faster than most other C compilers, and it generates code of comparable quality, lcc's target-independent front end performs a few simple, but effective, optimizations that contribute to good code; examples include simulating register declarations and partitioning switch statement cases into dense tables. It also implements target-independent function tracing and expression-level profiling.Keywords
This publication has 11 references indexed in Scilit:
- Simple register spilling in a retargetable compilerSoftware: Practice and Experience, 1992
- A code generation interface for ANSI CSoftware: Practice and Experience, 1991
- Fast allocation and deallocation of memory based on object lifetimesSoftware: Practice and Experience, 1990
- The cost of lexical analysisSoftware: Practice and Experience, 1986
- Producing good code for the case statementSoftware: Practice and Experience, 1985
- An execution profiler for modular programsSoftware: Practice and Experience, 1983
- Simple code optimizationsSoftware: Practice and Experience, 1983
- Programming toolsACM SIGPLAN Notices, 1978
- The best simple code generation technique for WHILE, FOR, and DO loopsACM SIGPLAN Notices, 1978
- An empirical study of FORTRAN programsSoftware: Practice and Experience, 1971