Skip to main content

A Comparative Study of Register Allocation Algorithms

  • Conference paper
  • First Online:
ICT Analysis and Applications (ICT4SD 2023)

Abstract

Register allocation is one of the most important issues in compiler optimization because a smart allocator can improve the quality of a code by nearly 250%. It is a significant optimization that has an impact on how well-compiled code performs. Also, it is one of the most researched issues in compiler theory, and there are numerous different strategies available to resolve it. This study compares several register allocation strategies.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 189.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 249.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Kindson The Tech Pro (2015) Register Allocation Via Graph Coloration,” YouTube, Aug. 19, 2015 [Video file]. Retrieved from https://www.youtube.com/watch?v=aMzcKTR5E1U&t=766s. Accessed on 31 Mar 2023

  2. Register Allocation (via graph coloring). web.cecs.pdx.edu. Retrieved from http://web.cecs.pdx.edu/~mperkows/temp/register-allocation.pdf., last accessed 2023/03/31.

  3. Bernice H (2023) Register allocation. Retrieved from http://technodocbox.com/. http://technodocbox.com/C_and_CPP/125816567-Lecture-26register-allocation.html. last accessed 2023/03/31.

  4. Fernando Magno Quint˜ao Pereira F (2008) A survey on register allocation. In: A survey on register allocation, UCLA compilers group

    Google Scholar 

  5. Gregory JC, Mark AA, Ashok KC, John C, Martin EH, Peter WM (1981) Register allocation via coloring. Comput Lang 6:47–57

    Google Scholar 

  6. Preston B, Keith DC, Linda T (1994) Improvements to graph coloring register allocation. ACM Transact Programm Lang Syst VCI116(3):428–455

    Google Scholar 

  7. Anne Berry F, Jean B, Pinar H, Barry P (2004) Maximum cardinality search for computing minimal triangulations of graphs. Algorithmica 39(4):287–298

    Google Scholar 

  8. Massimiliano P, Vivek S (1999) Linear scan register allocation. ACM Transact Programm Lang Syst 21(5):895–913

    Google Scholar 

  9. Hongbo R (2019) Tree Register Allocation, Copyright ACM 978–1–60558–798–1/09/12

    Google Scholar 

  10. Guei-Yuan L, Thomas G, Ali-Reza AT (2000) Fusion-based register allocation. ACM Transact Programm Lang Syst 22(3)

    Google Scholar 

  11. Andrew P (2023) Algorithms for Register Allocation. courses.cs.washington.edu. Retrieved from https://courses.cs.washington.edu/courses/csep521/07wi/prj/pardoe.docx. Accessed on 31 Mar 2023

  12. “Global Register Allocation via Graph Coloring.” people.cs.umass.edu. Retrieved from https://people.cs.umass.edu/~moss/610slides/37.pdf. Accessed on 31 Mar 2023

  13. Josef EJ (2015) Trace Register Allocation, SPLASH Companion’15, 5 ACM. 978–1–4503–3722–9/15/10 https://doi.org/10.1145/2814189.2814199, October 25–30

Download references

Acknowledgements

We wish to express our sincere gratitude to the Principal, HOD and faculty of Cummins College of Engineering and Dr. Uday Khedkar Sir for their constant guidance and encouragement.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Gauri Amin .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Amin, G., Dorkhande, G., Ogale, M., Mane, A., Gosavi, C. (2023). A Comparative Study of Register Allocation Algorithms. In: Fong, S., Dey, N., Joshi, A. (eds) ICT Analysis and Applications. ICT4SD 2023. Lecture Notes in Networks and Systems, vol 782. Springer, Singapore. https://doi.org/10.1007/978-981-99-6568-7_3

Download citation

Publish with us

Policies and ethics