skip to main content
10.1145/502874.502896acmconferencesArticle/Chapter ViewAbstractPublication PagesplanConference Proceedingsconference-collections
Article
Free Access

Register allocation by priority-based coloring

Published:01 June 1984Publication History

ABSTRACT

The classic problem of global register allocation is treated in a heuristic and practical manner by adopting the notion of priorities in node-coloring. The assignment of priorities is based on estimates of the benefits that can be derived from allocating individual quantities in registers. Using the priorities, the exponential coloring process can be made to run in linear time. Since the costs involved in register allocation are taken into account, the algorithm does not over-allocate. The algorithm can be parameterized to cater to different fetch characteristics and register configurations among machines. Measurements indicate that the register allocation scheme is effective on a number of target machines. The results confirm that, using priority-based coloring, global register allocation can be performed practically and efficiently.

References

  1. 1.G.J. Chitin, "Register Allocation and Spilling via Graph Coloring," ACM SIGPLAN Notice#, 17, 6 (June 1982), (Proceeding# of the SIGPLAN 82 Symposium on Compiler Construction), pp. 201 - 207. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. 2.F. Chow, "A Portable Machine-independent Global Optimizer -- Design and Measurements," Ph.D. Thesis and Technical Report 83-254, Computer System Lab, Stanford University, Dec. 1983. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. 3.R.A. Freiburghouse, "Register Allocation Via Usage Counts," Comm. ACM 17, 11, Nov. 74. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. 4.B. W, Leverett, "Register Allocation in Optimizing Compilers," Ph.D. Thesis and Tcchnlcal Report CMU C8-81-103, Carnegie-Mellon University, February 1981. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. 5.D. Perkins and R. Sites, "Machine-independent Pascal Code Optimization," ACM SIGPLAN Notices, 14, 8 (August 1979), (Proceedings on the SIG- PLAN 79 Symposium on Compiler Construction), pp. 201-207. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. 6.R.L. Sites and D.R. Perkins, "Machine-independent Register Allocation," ACM SIGPLAN Notices, Vol. 14, Number 8 (August 1979), (Proceedings of the SIGPLAN 79 Symposium on Compiler Construction), pp. 221-225. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. 7.J.T. Schwartl, "On Programming: An Interim Report on the SETL Project," Courant Institute of Math. Sciences, New York University, 1973.Google ScholarGoogle Scholar
  1. Register allocation by priority-based coloring

    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
      SIGPLAN '84: Proceedings of the 1984 SIGPLAN symposium on Compiler construction
      June 1984
      328 pages
      ISBN:0897911393
      DOI:10.1145/502874
      • cover image ACM SIGPLAN Notices
        ACM SIGPLAN Notices  Volume 19, Issue 6
        Proceedings of the SIGPLAN '84 symposium on compiler construction
        June 1984
        318 pages
        ISSN:0362-1340
        EISSN:1558-1160
        DOI:10.1145/502949
        Issue’s Table of Contents

      Copyright © 1984 Authors

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      • Published: 1 June 1984

      Permissions

      Request permissions about this article.

      Request Permissions

      Check for updates

      Qualifiers

      • Article

    PDF Format

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader