edu.ustc.cs.compile.arch
类 RegisterVariable

java.lang.Object
  继承者 edu.ustc.cs.compile.arch.RegisterVariable

public class RegisterVariable
extends java.lang.Object

Provides a representation of the register variable.

A register variable does not appear in the real assembly language. It can be used in the early stage of the assembly language generation. At this stage we use infinite register variables instead of finite registers. An then a global register allocator can map each register variable to a real register or a location on the stack.
Each register variable has an unique number.


字段摘要
private  int number
           
 
构造函数摘要
RegisterVariable(int number)
          Constructs a register variable with a number.
 
方法摘要
 int number()
          Gets the number of this register variable.
 java.lang.String toString()
          Returns a string representation of this register variable, which starts with "$R" followed by the number of this register variable.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

字段详细信息

number

private int number
构造函数详细信息

RegisterVariable

public RegisterVariable(int number)
Constructs a register variable with a number.

参数:
number - the number of the register variable.
方法详细信息

number

public int number()
Gets the number of this register variable.

返回:
the number of this register variable.

toString

public java.lang.String toString()
Returns a string representation of this register variable, which starts with "$R" followed by the number of this register variable.

覆盖:
java.lang.Object 中的 toString
返回:
a string representation of this register variable.