Package jminusminus

Class NPhysicalRegister

java.lang.Object
jminusminus.NRegister
jminusminus.NPhysicalRegister

class NPhysicalRegister extends NRegister
Representation for a physical register.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Argument 1.
    static final int
    Argument 2.
    static final int
    Argument 3.
    static final int
    Argument 4.
    static final int
    Reserved for assembler.
    static final int
    Frame pointer.
    static final int
    Pointer to global area.
    static final int
    Reserved for OS kernel.
    static final int
    Reserved for OS kernel.
    static int
    Maximum number of physical registers used for allocation, starting at T0.
    static final int
    Return address (used by function call).
    static final NPhysicalRegister[]
    Maps register number to the register's representation.
    static final int
    Temporary (preserved across call).
    static final int
    Temporary (preserved across call).
    static final int
    Temporary (preserved across call).
    static final int
    Temporary (preserved across call).
    static final int
    Temporary (preserved across call).
    static final int
    Temporary (preserved across call).
    static final int
    Temporary (preserved across call).
    static final int
    Temporary (preserved across call).
    static final int
    Stack pointer.
    static final int
    Temporary (not preserved across call).
    static final int
    Temporary (not preserved across call).
    static final int
    Temporary (not preserved across call).
    static final int
    Temporary (not preserved across call).
    static final int
    Temporary (not preserved across call).
    static final int
    Temporary (not preserved across call).
    static final int
    Temporary (not preserved across call).
    static final int
    Temporary (not preserved across call).
    static final int
    Temporary (not preserved across call).
    static final int
    Temporary (not preserved across call).
    static final int
    Expression evaluation and results of a function.
    static final int
    Expression evaluation and results of a function.
    static final int
    Constant 0.

    Fields inherited from class jminusminus.NRegister

    name, number
  • Constructor Summary

    Constructors
    Constructor
    Description
    NPhysicalRegister(int number, String name)
    Constructs an NPhysicalRegister.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a string representation of this physical register.

    Methods inherited from class jminusminus.NRegister

    name, number

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • NPhysicalRegister

      public NPhysicalRegister(int number, String name)
      Constructs an NPhysicalRegister.
      Parameters:
      number - number of the register.
      name - name of the register.
  • Method Details

    • toString

      public String toString()
      Returns a string representation of this physical register.
      Overrides:
      toString in class Object
      Returns:
      a string representation of this physical register.