Decaf Compiler
Public Attributes | List of all members
ILOCMachine Struct Reference

ILOC machine state structure. More...

Public Attributes

word_t reg [MAX_VIRTUAL_REGS]
 Virtual/physical register values.
 
ILOCInsnpc
 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)
 
ILOCInsninstructions [MAX_INSTRUCTIONS]
 List of program instructions (i.e., code) More...
 
ILOCInsnjump_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)
 

Detailed Description

ILOC machine state structure.

Member Data Documentation

◆ instructions

ILOCInsn* ILOCMachine::instructions[MAX_INSTRUCTIONS]

List of program instructions (i.e., code)

Note that instructions are NOT stored in the program's "address space."


The documentation for this struct was generated from the following file: