Package jminusminus
Class NPhysicalRegister
java.lang.Object
jminusminus.NRegister
jminusminus.NPhysicalRegister
Representation for a physical register.
-
Field Summary
Modifier and TypeFieldDescriptionstatic 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. -
Constructor Summary
-
Method Summary
-
Field Details
-
MAX_COUNT
public static int MAX_COUNTMaximum number of physical registers used for allocation, starting at T0. -
ZERO
public static final int ZEROConstant 0.- See Also:
-
AT
public static final int ATReserved for assembler.- See Also:
-
V0
public static final int V0Expression evaluation and results of a function.- See Also:
-
V1
public static final int V1Expression evaluation and results of a function.- See Also:
-
A0
public static final int A0Argument 1.- See Also:
-
A1
public static final int A1Argument 2.- See Also:
-
A2
public static final int A2Argument 3.- See Also:
-
A3
public static final int A3Argument 4.- See Also:
-
T0
public static final int T0Temporary (not preserved across call).- See Also:
-
T1
public static final int T1Temporary (not preserved across call).- See Also:
-
T2
public static final int T2Temporary (not preserved across call).- See Also:
-
T3
public static final int T3Temporary (not preserved across call).- See Also:
-
T4
public static final int T4Temporary (not preserved across call).- See Also:
-
T5
public static final int T5Temporary (not preserved across call).- See Also:
-
T6
public static final int T6Temporary (not preserved across call).- See Also:
-
T7
public static final int T7Temporary (not preserved across call).- See Also:
-
S0
public static final int S0Temporary (preserved across call).- See Also:
-
S1
public static final int S1Temporary (preserved across call).- See Also:
-
S2
public static final int S2Temporary (preserved across call).- See Also:
-
S3
public static final int S3Temporary (preserved across call).- See Also:
-
S4
public static final int S4Temporary (preserved across call).- See Also:
-
S5
public static final int S5Temporary (preserved across call).- See Also:
-
S6
public static final int S6Temporary (preserved across call).- See Also:
-
S7
public static final int S7Temporary (preserved across call).- See Also:
-
T8
public static final int T8Temporary (not preserved across call).- See Also:
-
T9
public static final int T9Temporary (not preserved across call).- See Also:
-
K0
public static final int K0Reserved for OS kernel.- See Also:
-
K1
public static final int K1Reserved for OS kernel.- See Also:
-
GP
public static final int GPPointer to global area.- See Also:
-
SP
public static final int SPStack pointer.- See Also:
-
FP
public static final int FPFrame pointer.- See Also:
-
RA
public static final int RAReturn address (used by function call).- See Also:
-
regInfo
Maps register number to the register's representation.
-
-
Constructor Details
-
NPhysicalRegister
Constructs an NPhysicalRegister.- Parameters:
number
- number of the register.name
- name of the register.
-
-
Method Details