Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
article
Free access

Register allocation by priority-based coloring

Published: 01 June 1984 Publication History
  • Get Citation Alerts
  • 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]
    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.
    [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.
    [3]
    R.A. Freiburghouse, "Register Allocation Via Usage Counts," Comm. ACM 17, 11, Nov. 74.
    [4]
    B. W, Leverett, "Register Allocation in Optimizing Compilers," Ph.D. Thesis and Tcchnlcal Report CMU C8-81-103, Carnegie-Mellon University, February 1981.
    [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.
    [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.
    [7]
    J.T. Schwartl, "On Programming: An Interim Report on the SETL Project," Courant Institute of Math. Sciences, New York University, 1973.

    Cited By

    View all
    • (2022)Solving Graph Coloring Problem Using Ant Colony Optimization, Simulated Annealing and Quantum Annealing—A Comparative StudyIntelligence Enabled Research10.1007/978-981-19-0489-9_1(1-15)Online publication date: 30-Mar-2022
    • (2020) Connected greedy coloring of -free graphs Discrete Applied Mathematics10.1016/j.dam.2020.04.024Online publication date: May-2020
    • (2019)Combinatorial Register Allocation and Instruction SchedulingACM Transactions on Programming Languages and Systems10.1145/333237341:3(1-53)Online publication date: 2-Jul-2019
    • Show More Cited By

    Index Terms

    1. Register allocation by priority-based coloring
      Index terms have been assigned to the content through auto-classification.

      Recommendations

      Comments

      Information & Contributors

      Information

      Published In

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

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      Published: 01 June 1984
      Published in SIGPLAN Volume 19, Issue 6

      Check for updates

      Qualifiers

      • Article

      Contributors

      Other Metrics

      Bibliometrics & Citations

      Bibliometrics

      Article Metrics

      • Downloads (Last 12 months)139
      • Downloads (Last 6 weeks)19
      Reflects downloads up to 11 Aug 2024

      Other Metrics

      Citations

      Cited By

      View all
      • (2022)Solving Graph Coloring Problem Using Ant Colony Optimization, Simulated Annealing and Quantum Annealing—A Comparative StudyIntelligence Enabled Research10.1007/978-981-19-0489-9_1(1-15)Online publication date: 30-Mar-2022
      • (2020) Connected greedy coloring of -free graphs Discrete Applied Mathematics10.1016/j.dam.2020.04.024Online publication date: May-2020
      • (2019)Combinatorial Register Allocation and Instruction SchedulingACM Transactions on Programming Languages and Systems10.1145/333237341:3(1-53)Online publication date: 2-Jul-2019
      • (2019)Graphs with small fall-spectrumDiscrete Applied Mathematics10.1016/j.dam.2018.06.037254(183-188)Online publication date: Feb-2019
      • (2017)On the b-Continuity of the Lexicographic Product of GraphsGraphs and Combinatorics10.1007/s00373-017-1832-133:5(1165-1180)Online publication date: 1-Sep-2017
      • (2014)Combinatorial spill code optimization and ultimate coalescingACM SIGPLAN Notices10.1145/2666357.259781549:5(23-32)Online publication date: 12-Jun-2014
      • (2014)Combinatorial spill code optimization and ultimate coalescingProceedings of the 2014 SIGPLAN/SIGBED conference on Languages, compilers and tools for embedded systems10.1145/2597809.2597815(23-32)Online publication date: 12-Jun-2014
      • (2014)Connected Greedy ColouringsLATIN 2014: Theoretical Informatics10.1007/978-3-642-54423-1_38(433-441)Online publication date: 2014
      • (2012)Constraint-Based Register Allocation and Instruction SchedulingProceedings of the 18th International Conference on Principles and Practice of Constraint Programming - Volume 751410.5555/2969951.2970011(750-766)Online publication date: 8-Oct-2012
      • (2012)b-coloring of tight graphsDiscrete Applied Mathematics10.1016/j.dam.2011.10.017160:18(2709-2715)Online publication date: 1-Dec-2012
      • Show More Cited By

      View Options

      View options

      PDF

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader

      Get Access

      Login options

      Media

      Figures

      Other

      Tables

      Share

      Share

      Share this Publication link

      Share on social media