skip to main content
10.1145/73141.74843acmconferencesArticle/Chapter ViewAbstractPublication PagespldiConference Proceedingsconference-collections
Article
Free Access

Coloring heuristics for register allocation

Authors Info & Claims
Published:21 June 1989Publication History

ABSTRACT

We describe an improvement to a heuristic introduced by Chaitin for use in graph coloring register allocation. Our modified heuristic produces better colorings, with less spill code. It has similar compile-time and implementation requirements. We present experimental data to compare the two methods.

References

  1. AuHo 82.M. Auslander and M. Hopkins. An overview of the PL.8 compiler. Proceeding8 of the SIGPLAN '82 Symposium on Compiler Construction, SIC- PLAN Notices 17(6), June, 1982. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. CCHK 87.A. Carle, K.D. Cooper, R.T. Hood, K. Kennedy, L. Torczon, a~d S.K. Warren. A practical environment for scientific programming. IEEE Computer 20(11), November, 1987. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. CeDT 84.M.R. Celis, J.E. Dennis, and R.A. Tapia. A trust region strategy for equality constrained optimization. In Numerical Optimization 1984 (P.T. Boggs, R.H. Byrd, and R.B. Schnabel, editom), SIAM, 1984.Google ScholarGoogle Scholar
  4. Chai 82.G.J. Chaitin. Register allocation and spilling via graph coloring. Proceedings of the $1~PLAN '82 Symposium on Compiler Construction, $IGPLAN Notices 17(6), June, 1982. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. CACC 81.G.J. Chaitin, M.A. Auslander, A.K. Chandra, J. Cocke, M.E. Hopkins, and P.W. Markstein. Register allocation via coloring. Computer Language8 6, January, 1981.Google ScholarGoogle Scholar
  6. Chow 83.F. Chow. A portable machine-independent global optimizer--design and measurements. Phi). Thesis. Technical Note No. 83-254, Computer Systems Laboratory, Stanford University, Dec. 1983. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. ChHe 84.F. Chow and J. Hennessy. Register allocation by priority based coloring. Proceedings of the SIC- PLAN '84 Symposium on Compiler Construction, SIGPLAN Notices 19(6), June, 1984. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. CoKT 86.K.D. Cooper, K. Kennedy, and L. Torczon. The impact of interprocedural analysis and optimiza~ tion in the IRa programming environment. A CM Transactions on Programming Languages and Systems 8(4), October, 1986. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. DBMS 82.J.J. Dongarra, J.R. Bunch, C.B. Moler, and G.W. Stewart. LINPACK Users' Guide, SIAM, Philadelphia, PA., 1982.Google ScholarGoogle Scholar
  10. Dong 83.J.J. Dong~ra. Performance of various computers using standard linear equations software in a Fortran environment. Argonne National Laborstory Technical Memorandum 28, August 1983 and subsequent revisions.Google ScholarGoogle Scholar
  11. FoMM 77.G.E. Forsythe, M.A. Malcolm, and C.B. Moler. Computer Methods for Mathematical Computations, Prentice-Hall, Inc., Englewood Cliffs, N J, 1977. Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. LaHi 86.J.R. Larus and P.N. Hilfinger. Register alloca~ tion in the SPUR Lisp compiler. Proceedings of the $IGPLAN '86 Symposium on Compiler Corstruction, $IGPLAN Notices 21(7), June, 1986. Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. MaBe 81.D. Matula and L. Beck. Smallest-last ordering and clustering and graph coloring algorithms. TR CSE 8104, Dept. of Computer Science and Engineering, Southern Methodist University, Dallas, TX, July, 1981.Google ScholarGoogle Scholar
  14. Torc 89.V.J. Torczon. Nonlinear optimization by parallel searches on simplex edges. PhD. Thesis, Department of Mathematical Sciences, Rice University, Houston, TX, expected May, 1989.Google ScholarGoogle Scholar
  15. Wirt 76.N. Wirth. Algorithms + Data Structures = Programs. Prentice-Hall, Inc., Englewood Cliffs, N J, 1976. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Coloring heuristics for register allocation

          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
          • Published in

            cover image ACM Conferences
            PLDI '89: Proceedings of the ACM SIGPLAN 1989 conference on Programming language design and implementation
            June 1989
            355 pages
            ISBN:089791306X
            DOI:10.1145/73141
            • cover image ACM SIGPLAN Notices
              ACM SIGPLAN Notices  Volume 24, Issue 7
              Proceedings of the SIGPLAN '89 symposium on Interpreters and interpretive techniques
              July 1989
              355 pages
              ISSN:0362-1340
              EISSN:1558-1160
              DOI:10.1145/74818
              Issue’s Table of Contents

            Copyright © 1989 ACM

            Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

            Publisher

            Association for Computing Machinery

            New York, NY, United States

            Publication History

            • Published: 21 June 1989

            Permissions

            Request permissions about this article.

            Request Permissions

            Check for updates

            Qualifiers

            • Article

            Acceptance Rates

            Overall Acceptance Rate406of2,067submissions,20%

            Upcoming Conference

            PLDI '24

          PDF Format

          View or Download as a PDF file.

          PDF

          eReader

          View online with eReader.

          eReader