- state.OOOJAVA = true;
- state.DISJOINT = true;
- state.OOO_NUMCORES = Integer.parseInt( args[++i] );
- state.OOO_MAXSESEAGE = Integer.parseInt( args[++i] );
-
- } else if (option.equals("-ooodebug") ){
- state.OOODEBUG = true;
- } else if (option.equals("-rcr")){
- state.RCR = true;
- state.KEEP_RG_FOR_ALL_PROGRAM_POINTS=true;
- } else if (option.equals("-rcr_debug")){
- state.RCR_DEBUG = true;
- state.KEEP_RG_FOR_ALL_PROGRAM_POINTS=true;
- } else if (option.equals("-rcr_debug_verbose")){
- state.RCR_DEBUG_VERBOSE = true;
- state.KEEP_RG_FOR_ALL_PROGRAM_POINTS=true;
- } else if (option.equals("-nostalltr")){
- state.NOSTALLTR = true;
- } else if (option.equals("-ssjava")){
- state.SSJAVA = true;
- } else if (option.equals("-printlinenum")){
- state.LINENUM=true;
- }else if (option.equals("-help")) {
- System.out.println("-classlibrary classlibrarydirectory -- directory where classlibrary is located");
- System.out.println("-selfloop task -- this task doesn't self loop its parameters forever");
- System.out.println("-dir outputdirectory -- output code in outputdirectory");
- System.out.println("-struct structfile -- output structure declarations for repair tool");
- System.out.println("-mainclass -- main function to call");
- System.out.println("-dsm -- distributed shared memory support");
- System.out.println("-singleTM -- single machine committing transactions");
- System.out.println("-abortreaders -- abort readers");
- System.out.println("-precise -- use precise garbage collection");
- System.out.println("-conscheck -- turn on consistency checking");
- System.out.println("-task -- compiler for tasks");
- System.out.println("-fastcheck -- fastcheckpointing for Bristlecone");
- System.out.println("-thread -- threads");
- System.out.println("-trueprob <d> -- probability of true branch");
- System.out.println("-printflat -- print out flat representation");
- System.out.println("-instructionfailures -- insert code for instruction level failures");
- System.out.println("-taskstate -- do task state analysis");
- System.out.println("-flatirtasks -- create dot files for flat IR graphs of tasks");
- System.out.println("-flatirusermethods -- create dot files for flat IR graphs of user methods");
- System.out.println("-flatirlibmethods -- create dot files for flat IR graphs of library class methods");
- System.out.println(" note: -flatirusermethods or -flatirlibmethods currently generate all class method flat IR graphs");
- System.out.println("-ownership -- do ownership analysis");
- System.out.println("-ownallocdepth <d> -- set allocation depth for ownership analysis");
- System.out.println("-ownwritedots <all/final> -- write ownership graphs; can be all results or just final results");
- System.out.println("-ownaliasfile <filename> -- write a text file showing all detected aliases in program tasks");
- System.out.println("-optimize -- enable optimizations");
- System.out.println("-noloop -- disable loop optimizations");
- System.out.println("-optional -- enable optional arguments");
- System.out.println("-abcclose close the array boundary check");
- System.out.println("-scheduling do task scheduling");
- System.out.println("-mlp <num cores> <max sese age> build mlp code");
- System.out.println("-mlpdebug if mlp, report progress and interim results");
- System.out.println("-multicore generate multi-core version binary");
- System.out.println("-numcore set the number of cores (should be used together with -multicore), defaultly set as 1");
- System.out.println("-interrupt generate raw version binary with interruption (should be used togethere with -raw)");
- System.out.println("-rawconfig config raw simulator as 4xn (should be used together with -raw)");
- System.out.println("-rawpath print out execute path information for raw version (should be used together with -raw)");
- System.out.println("-useprofile use profiling data for scheduling (should be used together with -raw)");
- System.out.println("-threadsimulate generate multi-thread simulate version binary");
- System.out.println("-rawuseio use standard io to output profiling data (should be used together with -raw and -profile), it only works with single core version");
- System.out.println("-printscheduling -- print out scheduling graphs");
- System.out.println("-printschedulesim -- print out scheduling simulation result graphs");
- System.out.println("-webinterface -- enable web interface");
- System.out.println("-linenum print out line numbers in generated C codes");
- System.out.println("-help -- print out help");
- System.exit(0);
+ state.OOOJAVA = true;
+ state.DISJOINT = true;
+ state.OOO_NUMCORES = Integer.parseInt(args[++i]);
+ state.OOO_MAXSESEAGE = Integer.parseInt(args[++i]);
+
+ } else if (option.equals("-ooodebug") ) {
+ state.OOODEBUG = true;
+ } else if (option.equals("-rcr")) {
+ state.RCR = true;
+ state.KEEP_RG_FOR_ALL_PROGRAM_POINTS=true;
+ } else if (option.equals("-rcr_debug")) {
+ state.RCR_DEBUG = true;
+ state.KEEP_RG_FOR_ALL_PROGRAM_POINTS=true;
+ } else if (option.equals("-rcr_debug_verbose")) {
+ state.RCR_DEBUG_VERBOSE = true;
+ state.KEEP_RG_FOR_ALL_PROGRAM_POINTS=true;
+ } else if (option.equals("-nostalltr")) {
+ state.NOSTALLTR = true;
+ } else if (option.equals("-ssjava")) {
+ state.SSJAVA = true;
+ } else if (option.equals("-ssjavadebug")) {
+ state.SSJAVADEBUG = true;
+ }else if (option.equals("-printlinenum")) {
+ state.LINENUM=true;
+ } else if (option.equals("-help")) {
+ System.out.println("-classlibrary classlibrarydirectory -- directory where classlibrary is located");
+ System.out.println("-selfloop task -- this task doesn't self loop its parameters forever");
+ System.out.println("-dir outputdirectory -- output code in outputdirectory");
+ System.out.println("-struct structfile -- output structure declarations for repair tool");
+ System.out.println("-mainclass -- main function to call");
+ System.out.println("-dsm -- distributed shared memory support");
+ System.out.println("-singleTM -- single machine committing transactions");
+ System.out.println("-abortreaders -- abort readers");
+ System.out.println("-precise -- use precise garbage collection");
+ System.out.println("-conscheck -- turn on consistency checking");
+ System.out.println("-task -- compiler for tasks");
+ System.out.println("-fastcheck -- fastcheckpointing for Bristlecone");
+ System.out.println("-thread -- threads");
+ System.out.println("-trueprob <d> -- probability of true branch");
+ System.out.println("-printflat -- print out flat representation");
+ System.out.println("-instructionfailures -- insert code for instruction level failures");
+ System.out.println("-taskstate -- do task state analysis");
+ System.out.println("-flatirtasks -- create dot files for flat IR graphs of tasks");
+ System.out.println("-flatirusermethods -- create dot files for flat IR graphs of user methods");
+ System.out.println("-flatirlibmethods -- create dot files for flat IR graphs of library class methods");
+ System.out.println(" note: -flatirusermethods or -flatirlibmethods currently generate all class method flat IR graphs");
+ System.out.println("-ownership -- do ownership analysis");
+ System.out.println("-ownallocdepth <d> -- set allocation depth for ownership analysis");
+ System.out.println("-ownwritedots <all/final> -- write ownership graphs; can be all results or just final results");
+ System.out.println("-ownaliasfile <filename> -- write a text file showing all detected aliases in program tasks");
+ System.out.println("-optimize -- enable optimizations");
+ System.out.println("-noloop -- disable loop optimizations");
+ System.out.println("-optional -- enable optional arguments");
+ System.out.println("-abcclose close the array boundary check");
+ System.out.println("-scheduling do task scheduling");
+ System.out.println("-mlp <num cores> <max sese age> build mlp code");
+ System.out.println("-mlpdebug if mlp, report progress and interim results");
+ System.out.println("-multicore generate multi-core version binary");
+ System.out.println("-numcore set the number of cores (should be used together with -multicore), defaultly set as 1");
+ System.out.println("-interrupt generate raw version binary with interruption (should be used togethere with -raw)");
+ System.out.println("-rawconfig config raw simulator as 4xn (should be used together with -raw)");
+ System.out.println("-rawpath print out execute path information for raw version (should be used together with -raw)");
+ System.out.println("-useprofile use profiling data for scheduling (should be used together with -raw)");
+ System.out.println("-threadsimulate generate multi-thread simulate version binary");
+ System.out.println("-rawuseio use standard io to output profiling data (should be used together with -raw and -profile), it only works with single core version");
+ System.out.println("-printscheduling -- print out scheduling graphs");
+ System.out.println("-printschedulesim -- print out scheduling simulation result graphs");
+ System.out.println("-webinterface -- enable web interface");
+ System.out.println("-linenum print out line numbers in generated C codes");
+ System.out.println("-help -- print out help");
+ System.exit(0);