A code generation interface for ANSI C

作者: Christopher W. Fraser , David R. Hanson

DOI: 10.1002/SPE.4380210906

关键词:

摘要: SUMMARY lcc is a retargetable, production compiler for ANSI C; it has been ported to the VAX, Motorola 68020, SPARC, and MIPS R3000, some versions have in use over year half. It smaller faster than generally available alternatives, its local code comparable. This paper describes interface between target-independent front end target-dependent back ends. The consists of shared data structures, few functions, dag language. While this approach couples ends tightly, results efficient, compact compilers. illustrated by detailing generator that emits naive VAX code.

参考文章(14)
H. H. Nageli, K. V. Nori, Urs Ammann, Kathleen Jensen, Christian Jacobi, Pascal-P Implementation Notes. Pascal - The Language and its Implementation. pp. 125- 170 ,(1981)
Timothy E. Leonard, VAX architecture reference manual ,(1987)
A. S. Tanenbaum, M. F. Kaashoek, K. G. Langendoen, C. J. H. Jacobs, The design of very fast portable compilers Sigplan Notices. ,vol. 24, pp. 125- 131 ,(1989) , 10.1145/71605.71616
C. W. Fraser, A language for writing code generators Proceedings of the ACM SIGPLAN 1989 Conference on Programming language design and implementation - PLDI '89. ,vol. 24, pp. 238- 245 ,(1989) , 10.1145/73141.74839
Daniel R. Perkins, Richard L. Sites, Machine-independent PASCAL code optimization compiler construction. ,vol. 14, pp. 201- 207 ,(1979) , 10.1145/800229.806970
M. C. Newey, P. C. Poole, W. M. Waite, Abstract machine modelling to produce portable software—a review and evaluation Software: Practice and Experience. ,vol. 2, pp. 107- 136 ,(1972) , 10.1002/SPE.4380020203
Jack W. Davidson, Christopher W. Fraser, Code selection through object code optimization ACM Transactions on Programming Languages and Systems. ,vol. 6, pp. 505- 526 ,(1984) , 10.1145/1780.1783
Alfred V. Aho, Mahadevan Ganapathi, Steven W. K. Tjiang, Code generation using tree matching and dynamic programming ACM Transactions on Programming Languages and Systems. ,vol. 11, pp. 491- 516 ,(1989) , 10.1145/69558.75700
Robert L. Bernstein, Producing good code for the case statement Software - Practice and Experience. ,vol. 15, pp. 1021- 1024 ,(1985) , 10.1002/SPE.4380151009
Christopher W. Fraser, A retargetable compiler for ANSI C ACM SIGPLAN Notices. ,vol. 26, pp. 29- 43 ,(1991) , 10.1145/122616.122621