Decaf Compiler
|
ILOC machine state structure. More...
Public Attributes | |
word_t | reg [MAX_VIRTUAL_REGS] |
Virtual register values. | |
word_t | pr [MAX_PHYSICAL_REGS] |
Physical register values. | |
ILOCInsn * | pc |
Program counter (pointer to next instruction to execute) | |
word_t | sp |
Stack pointer value. | |
word_t | bp |
Base pointer value. | |
word_t | ret |
Function return value. | |
byte_t | mem [MEM_SIZE] |
Program address space (memory w/ global variables and stack) | |
ILOCInsn * | instructions [MAX_INSTRUCTIONS] |
List of program instructions (i.e., code) | |
ILOCInsn * | jump_targets [MAX_INSTRUCTIONS] |
Jump targets (instrution pointers indexed by jump label IDs) | |
CallTargetList * | call_targets |
Call targets (list of string label and instruction pointer pairs) | |
ILOC machine state structure.
ILOCInsn* ILOCMachine::instructions[MAX_INSTRUCTIONS] |
List of program instructions (i.e., code)
Note that instructions are NOT stored in the program's "address space."