ACM Home Page
Please provide us with feedback. Feedback
The Design and Application of a Retargetable Peephole Optimizer
Full text PdfPdf (675 KB)
Source ACM Transactions on Programming Languages and Systems (TOPLAS) archive
Volume 2 ,  Issue 2  (April 1980) table of contents
Pages: 191 - 202  
Year of Publication: 1980
ISSN:0164-0925
Authors
Jack W. Davidson  Department of Computer Science, University of Arizona, Tucson, AZ
Christopher W. Fraser  Department of Computer Science, University of Arizona, Tucson, AZ
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 9,   Downloads (12 Months): 52,   Citation Count: 36
Additional Information:

abstract   references   cited by   index terms   collaborative colleagues  

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

ABSTRACT

Peephole optimizers improve object code by replacing certain sequences of instructions with better sequences. This paper describes PO, a peephole optimizer that uses a symbolic machine description to simulate pairs of adjacent instructions, replacing them, where possible, with an equivalent single instruction. As a result of this organization, PO is machine independent and can be described formally and concisely: when PO is finished, no instruction, and no pair of adjacent instructions, can be replaced with a cheaper single instruction that has the same effect. This thoroughness allows PO to relieve code generators of much case analysis; for example, they might produce only load/add-register sequences and rely on PO to, where possible, discard them in favor or add-memory, add-immediate, or increment instructions. Experiments indicate that naive code generators can give good code if used with PO.


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
ALLEN, F.E., AND COCKE, J. A catalogue of optimizing transformations. In Design and Optimization of Compilers, no. 1-30, R. Rustin (Ed)., Prentice-Hall, Englewood Cliffs, N.J., 1972.
2
 
3
 
4
FORTRAN-10 reference manual. Digital Equipment Corp., Maynard, Mass., 1974.
5
6
 
7
8
9
 
10
PDP-11 processor handbook. Digital Equipment Corp., Maynard, Mass., 1975.
 
11
STANDISH, T.A., HARRIMAN, D.C., KIBLER, D.F., AND NEIGHBORS, J.M. The Irvine program transformation catalogue. Dep. Information and Computer Science, Univ. California, Irvine, 1976.
 
12

CITED BY  36

Collaborative Colleagues:
Jack W. Davidson: colleagues
Christopher W. Fraser: colleagues