ACM Home Page
Please provide us with feedback. Feedback
Code-generation for machines with multiregister operations
Full text PdfPdf (602 KB)
Source Annual Symposium on Principles of Programming Languages archive
Proceedings of the 4th ACM SIGACT-SIGPLAN symposium on Principles of programming languages table of contents
Los Angeles, California
Pages: 21 - 28  
Year of Publication: 1977
Authors
A. V. Aho  Bell Laboratories, Murray Hill, New Jersey
S. C. Johnson  Bell Laboratories, Murray Hill, New Jersey
J. D. Ullman  Princeton University, Princeton, New Jersey
Sponsors
SIGACT: ACM Special Interest Group on Algorithms and Computation Theory
SIGPLAN: ACM Special Interest Group on Programming Languages
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 5,   Downloads (12 Months): 26,   Citation Count: 11
Additional Information:

abstract   references   cited by   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/512950.512953
What is a DOI?

ABSTRACT

Previous work on optimal code generation has usually assumed that the underlying machine has identical registers and that all operands fit in a single register or memory location. This paper considers the more realistic problem of generating optimal code for expressions involving single and double length operands, using several models of register-pair machines permitting both single and double word instructions. With register-pair machines a new phenomenom arises that is not present in optimal code generation for single register machines: In an optimal evaluation of an expression it may be necessary to oscillate back and forth between evaluating subexpressions of the expression.A linear-time optimal code generation algorithm is derived for a register-pair machine in which all registers are interchangeable. The algorithm is based on showing that for this model there is an optimal evaluation sequence with limited oscillation between the sub-trees dominated by the children of a given node. For other machine models including the familiar even-odd register-pair machine, optimal evaluation sequences can always require unlimited oscillation.


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
 
3
{AU} A. V. Aho and J. D. Ullman, "Optimization of Straight Line Code," SIAM J. Computing 1,1 (1972), 1-19.
4
5
6
7
8
9
 
10
{RKL} D. M. Ritchie, B. W. Kernighan, and M. E. Lesk, "The C Programming Language," CSTR #31, Bell Laboratories, Murray Hill, N. J., 1975.
11
 
12

CITED BY  11
Collaborative Colleagues:
A. V. Aho: colleagues
S. C. Johnson: colleagues
J. D. Ullman: colleagues