coins.mdf
Class CoCo

java.lang.Object
  extended bycoins.driver.Driver
      extended bycoins.mdf.CoCo
All Implemented Interfaces:
CompilerImplementation

public class CoCo
extends Driver

CoCo - Coarse Grain Parallelization Compiler by using COINS
CoCo is a compiler driver which generates coarse grain parallelized code. It uses an extra compiler for code generation. The extra compiler should be able to handle the OpenMP pragma.


Field Summary
protected static java.lang.String DEFAULT_OMPC_NAME
          The default name of the extra compile
protected  java.lang.String myName
          The name of this compiler driver
protected static java.lang.String OMPC_NAME_OPTION
          The name of the options for this compiler driver
 
Fields inherited from class coins.driver.Driver
ASSEMBLER_NAME_OPTION, CG_PARALLEL, CHECK_HIR_OPTION, CHECK_SYMBOL_TABLE_OPTION, COARSE_GRAIN_PARALLEL, COINS_OPTION_DELIMITER, DEBUG_OPTION, DEFAULT_ASSEMBLER_NAME, DEFAULT_LINKER_NAME, DEFAULT_LINKER_OPTIONS_PROPERTY, DEFAULT_LIR_OPTION, DEFAULT_OPTIMIZATION_LEVEL, DEFAULT_PREPROCESSOR_NAME, DEFAULT_SETTING, defaultSettings, DUMP_HIR_OPTION, DUMP_HIR_OPTION_DELIMITER, FLOW_ANAL_OPTION_DELIMITER, HIR_FLOW_ANAL_OPTION, HIR_OPT_ARG_FROMC, HIR_OPT_OPTION, HIR_OPTIMIZATION_ARGS, HIR_TO_C_OPTION, HIR_TO_C_OPTION_DELIMITER, hirFlowRoot, LINKER_NAME_OPTION, LIR_OPTIMIZATION_ARGS, LIR_TO_C_OPTION, LIR_TO_C_OPTION_DELIMITER, MACRO_DATA_FLOW_OPTION, MAX_OPTIMIZATION_LEVEL, NEW_LIR_OPTION, OLD_LIR_OPTION, OPENMP_OPTION, OPT_OPTION_DELIMITER, OUT_NEW_LIR_OPTION, PARALLEL_DO_ALL, PREPROCESSOR_NAME_OPTION, SIMULATE_OPTION, SSA_OPTIMIZATION_ARGS, SSA_OPTION, STOP_AFTER_HIR_TO_C_OPTION, STOP_AFTER_LIR_TO_C_OPTION, SYSTEM_INCLUDE_PATH_PROPERTY, TARGET_ARCH_OPTION, TARGET_CONVENTION_OPTION, VERBOSE_FLAG
 
Constructor Summary
CoCo()
           
 
Method Summary
 void compile(java.io.File sourceFile, Suffix suffix, java.io.InputStream in, java.io.OutputStream out, IoRoot io)
          Compile the source code.
static void main(java.lang.String[] args)
          Main
 
Methods inherited from class coins.driver.Driver
assemble, basicHIROptimizations, callHirBaseToC, callLirToC, checkHirToCStopCondition, checkLIROptionsIntegrity, checkLirToCStopCondition, dumpHirBase, dumpHirBase, dumpHirBase, go, includedInDelimitedList, link, makeCommandLine, makeCSourceFromHirBase, makeCSourceFromHirBase, makeCSourceFromLir, makeCSourceFromLir, makeHIRFlowAnalysis, makeHirFromSource, makeLIRFromLIRSource, makeNewLirFromHir, matchDumpHirTiming, matchHirToCTiming, matchLirToCTiming, optimizeHirAfterFlowAnalysis, optimizeHirBeforeFlowAnalysis, preprocess, runProgram, runProgram, runProgram, separateDelimitedList, setDefaultLinkerOptions, setOptimizationOptions, setSystemIncludePathOptions, testHir, testSym
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myName

protected java.lang.String myName
The name of this compiler driver


DEFAULT_OMPC_NAME

protected static final java.lang.String DEFAULT_OMPC_NAME
The default name of the extra compile

See Also:
Constant Field Values

OMPC_NAME_OPTION

protected static final java.lang.String OMPC_NAME_OPTION
The name of the options for this compiler driver

See Also:
Constant Field Values
Constructor Detail

CoCo

public CoCo()
Method Detail

compile

public void compile(java.io.File sourceFile,
                    Suffix suffix,
                    java.io.InputStream in,
                    java.io.OutputStream out,
                    IoRoot io)
             throws java.io.IOException,
                    PassException
Compile the source code.

Specified by:
compile in interface CompilerImplementation
Overrides:
compile in class Driver
Parameters:
sourceFile - The source file
suffix - The suffix rules
in - The input stream for this compiler driver
out - The ouput stream of this compiler driver
io - The IoRoot of this compiler driver
Throws:
java.io.IOException - Any IO exception
PassException - Any exception during compile

main

public static void main(java.lang.String[] args)
Main

Parameters:
args - The argument for this compiler driver