skip to main content
article
Free Access

Optimal chaining in expression trees

Published:01 July 1986Publication History
Skip Abstract Section

Abstract

Chaining is the ability to pipeline two or more vector instructions on Cray-1 like machines. We show how to optimally use this feature to compute (vector) expression trees, in the context of automatic code-generation. We present a linear-time scheduling algorithm for finding an optimal order of evaluation for a machine with a bounded number of registers.

References

  1. A Arya, S., "An optimal instructionscheduling model for a class of vector processors", IEEE Transactions on Cornputers, Vol. C-34, No. 11, (November 1985), 981-995.Google ScholarGoogle Scholar
  2. AJ Aho, A.V., and Johnson, S.C., "Optimal code generation for expression trees", Journal of the A CM 23, 3 (July 1976), 488-501. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. AJU Aho, A.V., Johnson, S.C., and Ullman, J.D. "Code generation for expressions with common subexpressions", Journal of the ACM 24, 1 (January 1977), 146-160. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. BJPR Bernstein, D., Jaffe, J.M., Pinter, R.Y., and Rodeh, M., "Optimal scheduling of arithmetic operations in parallel with memory access", TR 88.136, IBM-Israel Scientific Center (May 1985). A preliminary version has appeared in the Proceedings of the Twelfth A CM Symposium on Principles of Programming Languages, (January 1985), 325-333. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. BJR Bernstein, D., Jaffe, J.M., and Rodeh, M., "Scheduling arithmetic and load operations in parallel with no spilling", in preparation.Google ScholarGoogle Scholar
  6. BS Bruno, J.L., and Sethi, R., "Code generation for a one-register machine", Journal of the ACM 23, 3 (July 1976), 502-510. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. C Cray-I Hardware Reference Manual, Cray Research inc., Cray-I Comput. Syst. Publ. 2240004 (May 1979).Google ScholarGoogle Scholar
  8. HB Hwang, K., and Briggs, F.A., Computer architecture and parallel processing, McGraw-Hill, New York, 1984. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. R Russell, R.M., "The Cray-I computer system", Communication of the A CM 21, 1 (January 1978), 63-72. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. SU Sethi, R., and Ullman, J.D., "The generation of optimal code for arithmetic expressions", Journal of the A CM 17, 4 (October 1970), 715-728. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Optimal chaining in expression trees

                    Recommendations

                    Comments

                    Login options

                    Check if you have access through your login credentials or your institution to get full access on this article.

                    Sign in

                    Full Access

                    • Published in

                      cover image ACM SIGPLAN Notices
                      ACM SIGPLAN Notices  Volume 21, Issue 7
                      July 1986
                      275 pages
                      ISSN:0362-1340
                      EISSN:1558-1160
                      DOI:10.1145/13310
                      Issue’s Table of Contents
                      • cover image ACM Conferences
                        SIGPLAN '86: Proceedings of the 1986 SIGPLAN symposium on Compiler construction
                        July 1986
                        275 pages
                        ISBN:0897911970
                        DOI:10.1145/12276

                      Copyright © 1986 Authors

                      Publisher

                      Association for Computing Machinery

                      New York, NY, United States

                      Publication History

                      • Published: 1 July 1986

                      Check for updates

                      Qualifiers

                      • article

                    PDF Format

                    View or Download as a PDF file.

                    PDF

                    eReader

                    View online with eReader.

                    eReader