dspl.backend
Class InstructionProcessor

java.lang.Object
  extended by dspl.backend.InstructionProcessor

public class InstructionProcessor
extends java.lang.Object

InstructionProcessor is the primary Class used to take Intermediate Instructions and properly dispatch them to be converted into the appriopriate machine-specific instruction set

Author:
David

Field Summary
protected  AssemblyfileGenerator afg
          AssemblyfileGenerator to write the assembly instructions to
protected  ArithmaticInstructionProcessor aip
          The target ISA's Arithmatic Instruction processor
protected  BranchInstructionProcessor bip
          The target ISA's Branch Instruction Processor
protected  CCallInstructionProcessor cip
          The target ISA's CCall Instruction Processor
protected  LoopInstructionProcessor lip
          The target ISA's Loop Instruction Processor
protected  SymbolTable st
          SymbolTable for declared variables
 
Constructor Summary
InstructionProcessor(SymbolTable st, AssemblyfileGenerator afg)
          Constructs an InstructionProcessor given the provided SymbolTable and AssemblyfileGenerator to route instructions to
 
Method Summary
 void processInstruction(Instruction inst)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

st

protected SymbolTable st
SymbolTable for declared variables


afg

protected AssemblyfileGenerator afg
AssemblyfileGenerator to write the assembly instructions to


aip

protected ArithmaticInstructionProcessor aip
The target ISA's Arithmatic Instruction processor


bip

protected BranchInstructionProcessor bip
The target ISA's Branch Instruction Processor


cip

protected CCallInstructionProcessor cip
The target ISA's CCall Instruction Processor


lip

protected LoopInstructionProcessor lip
The target ISA's Loop Instruction Processor

Constructor Detail

InstructionProcessor

public InstructionProcessor(SymbolTable st,
                            AssemblyfileGenerator afg)
Constructs an InstructionProcessor given the provided SymbolTable and AssemblyfileGenerator to route instructions to

Parameters:
st -
afg -
Method Detail

processInstruction

public void processInstruction(Instruction inst)