| Code-generation for machines with multiregister operations |
| Full text |
Pdf
(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
|
|
| Sponsors |
|
| Publisher |
|
| Bibliometrics |
Downloads (6 Weeks): 4, Downloads (12 Months): 26, Citation Count: 11
|
|
|
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
|
|
|