Back to Search Start Over

A Case Study of a New Code Generation Technique for Compilers.

Authors :
Carter, J. Lawrence
Source :
Communications of the ACM; Dec1977, Vol. 20 Issue 12, p914-920, 7p, 5 Diagrams
Publication Year :
1977

Abstract

Recent developments in optimizing techniques have allowed a new design for compilers to emerge. Such a compiler translates the parsed source code into lower level code by a sequence of steps. Each step expands higher level statements into blocks of lower level code and then performs optimizations on the result. Each statement has only one possible expansion - the task of tailoring this code to take advantage of any special cases is done by the optimizations. This paper provides evidence that this strategy can indeed result in good object code. The traditionally difficult PL/I concatenate statement was investigated as a detailed example. A set of fairly simple optimizations was identified which allow the compiler to produce good code. More elaborate optimizations can further improve the object code. For most contexts of the concatenate statement, the code produced by a compiler using the expansion-optimization strategy described above compares favorably with the code produced by a conventional PL/I optimizing compiler. [ABSTRACT FROM AUTHOR]

Details

Language :
English
ISSN :
00010782
Volume :
20
Issue :
12
Database :
Complementary Index
Journal :
Communications of the ACM
Publication Type :
Periodical
Accession number :
5225325
Full Text :
https://doi.org/10.1145/359897.359902