Package jminusminus

Class NLinearRegisterAllocator

java.lang.Object
jminusminus.NRegisterAllocator
jminusminus.NLinearRegisterAllocator

public class NLinearRegisterAllocator extends NRegisterAllocator
Implements register allocation using linear scan algorithm.
  • Constructor Details

    • NLinearRegisterAllocator

      public NLinearRegisterAllocator(NControlFlowGraph cfg)
      Constructs an NLinearRegisterAllocator object.
      Parameters:
      cfg - an instance of a control flow graph.
  • Method Details

    • allocation

      public void allocation()
      The work horse that does the allocation, implemented in the sub-classes of this class.
      Specified by:
      allocation in class NRegisterAllocator