ACM Home Page
Please provide us with feedback. Feedback
Code generation in a machine-independent compiler
Full text PdfPdf (821 KB)
Source Symposium on Compiler Construction archive
Proceedings of the 1979 SIGPLAN symposium on Compiler construction table of contents
Denver, Colorado, United States
Pages: 65 - 75  
Year of Publication: 1979
ISBN:0-89791-002-8
Also published in ...
Authors
Roderic G.G. Cattell  Xerox Pale Alto Research Center, 3333 Coyote Hill Road, Pale, Alto, CA
Joseph M. Newcomer  Computer Science Department, Carnegie-Mellon University, Pittsburgh, PA
Bruce W. Leverett  Computer Science Department, Carnegie-Mellon University, Pittsburgh, PA
Sponsor
SIGPLAN: ACM Special Interest Group on Programming Languages
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 4,   Downloads (12 Months): 18,   Citation Count: 7
Additional Information:

abstract   references   cited by   index terms   collaborative colleagues  

Tools and Actions: Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/800229.806955
What is a DOI?

ABSTRACT

This paper presents some code generation issues in the context of the PQCC Production-Quality Compiler-Compiler project [8]. The approach taken is unusual in several ways. The machine-dependent information for selection of code sequences, register assignments, etc., has been separated throughout, in tabular form, from the machine-independent algorithms. This not only greatly simplifies the development of code generators for new machines or languages, but paves the way for automatic generation of these tables from formal machine descriptions such as ISP [1]. A parse-tree-like internal program representation is used, facilitating the use of context and data dependency information about expressions. The code generation process has been broken into several phases. This leads to simplification and better understanding of the code generation process, and also allows important improvements in the quality of generated code. The algorithms for preliminary determination of addressing modes, allocation of registers and other locations, and the code selection case analysis are discussed. The algorithms described in the paper are being implemented and used in the PQCC compiler.


REFERENCES

Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.

 
1
 
2
R.G.G. Cattell. Formalization and Automatic Derivation of Code Generators. (to appear).
 
3
 
4
R.G.G. Cattell. Using Machine Descriptions for Automatic Generation of Code Generators. In Proceedings of the 3rd Jerusalem Conference on Information Technology, pages 503-507. North-Holland, 1978.
 
5
Digital Equipment Corporation. VAX-11/780 Architecture Handbook. 1977.
6
 
7
 
8
B.W. Leverett, R.G.G. Cattell, S.O. Hobbs, J.M. Newcomer, A.H. Reiner, B.R. Schatz, W.A. Wulf. An Overview of the Production Quality Compiler-Compiler Project. Technical Report CMU-CS-79-105, Carnegie-Mellon University, Computer Science Department, February, 1979.
 
9
Lawrence Livermore Laboratories. S-1 Processor Manual. 1978.
10
 
11
Knut Ripken. Formale Beschreibung von Maschinen, Implementierungen und optimierender Maschinecode-erzeugung aus attributierten Programmgraphen. PhD thesis, Technische Universitat Munchen, July, 1977. In German; reviewed in English by Bert Speelpenning, A Review of Ripken's Thesis, unpublished.
 
12


Collaborative Colleagues:
Roderic G.G. Cattell: colleagues
Joseph M. Newcomer: colleagues
Bruce W. Leverett: colleagues