coins.drivergen.process
Class Process

java.lang.Object
  extended bycoins.drivergen.process.Process
Direct Known Subclasses:
GenerateCode, MakeHirFromSource, MakeNewLirFromHir

public abstract class Process
extends java.lang.Object

abstract class Process Class process is the super class of module which is invoked by Driver. Driver invoke it as belows (1) check the condition wheather this process can start (2) if the condition satisfy the precondirion (2-1) then go() (2-2) else throws ProcessExceptoin (3) go()


Field Summary
protected static java.lang.String CANT_START
           
protected  InputIr ir
          Intermediate representation which input to this process.
protected static java.lang.String NOT_C_SRC
           
protected static java.lang.String NOT_F_SRC
           
protected static java.lang.String NOT_L_SRC
           
protected  Options opt
          The command-line options for the COINS compiler driver
 
Constructor Summary
(package private) Process(InputIr ir, Options opt)
          Constructor
 
Method Summary
abstract  boolean canStart()
          Check the present status and judge this process can invoke.
abstract  void go()
          Run the compiler driver.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ir

protected InputIr ir
Intermediate representation which input to this process. If this process changes the intermediate representation, the process rewrites it


opt

protected Options opt
The command-line options for the COINS compiler driver


CANT_START

protected static final java.lang.String CANT_START
See Also:
Constant Field Values

NOT_C_SRC

protected static final java.lang.String NOT_C_SRC
See Also:
Constant Field Values

NOT_F_SRC

protected static final java.lang.String NOT_F_SRC
See Also:
Constant Field Values

NOT_L_SRC

protected static final java.lang.String NOT_L_SRC
See Also:
Constant Field Values
Constructor Detail

Process

Process(InputIr ir,
        Options opt)
Constructor

Parameters:
ir - Intermediate Representation which input to this process
opt - Options for the COINS compiler driver
Method Detail

go

public abstract void go()
                 throws ProcessException,
                        PassException,
                        java.io.IOException
Run the compiler driver.

Throws:
ProcessException
PassException
java.io.IOException

canStart

public abstract boolean canStart()
Check the present status and judge this process can invoke.