• DocumentCode
    1998148
  • Title

    A Modified Linear Scan Register Allocation Algorithm

  • Author

    Subha, S.

  • fYear
    2009
  • fDate
    27-29 April 2009
  • Firstpage
    825
  • Lastpage
    827
  • Abstract
    This paper proposes a global register allocation algorithm that makes decisions on register allocation based on the cost of spilling variables in linear scan allocation. The algorithm assumes registers are initially allocated based on linear scan algorithm. When there is a need to spill variables, either the allocated or the new variable is spilled based on the cost incurred in allocation. The cost is calculated as a function of number of definitions and uses of a variable for the rest of its live range. A mathematical model for determining the cost is proposed which decides register allocation. Given the live ranges of the variables the time complexity of the algorithm is derived. Simulations on an arbitrary program showed an improvement when compared to linear scan algorithm.
  • Keywords
    computational complexity; optimising compilers; storage allocation; linear scan allocation; mathematical model; modified linear scan register allocation algorithm; spilling variable cost; Cost function; Data structures; Delay; Information technology; Mathematical model; Registers; Live range; Register allocation;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Information Technology: New Generations, 2009. ITNG '09. Sixth International Conference on
  • Conference_Location
    Las Vegas, NV
  • Print_ISBN
    978-1-4244-3770-2
  • Electronic_ISBN
    978-0-7695-3596-8
  • Type

    conf

  • DOI
    10.1109/ITNG.2009.90
  • Filename
    5070724