Package EDU.purdue.cs.bloat.optimize
Class Main
- java.lang.Object
-
- EDU.purdue.cs.bloat.optimize.Main
-
public class Main extends java.lang.ObjectUsage: java EDU.purdue.cs.bloat.optimize.Main [-options] classes dir where options include: -help print out this message -v -verbose turn on verbose mode -debug display a hideous amount of debug info -classpathlist directories in which to look for classes -f optimize files even if up-to-date -closure recursively optimize referenced classes -relax-loading don't report errors if a class is not found -skip skip the given class or package -only skip all but the given class or package -preserve-debug try to preserve debug information -[no]anno insert an annotation in the contant pool -[no]stack-alloc try to push locals onto the operand stack -peel-loops peel innermost loops to enable code hoisting (n >= 0 is the maximum loop level to peel) -[no]pre perform partial redundency elimination -[no]appre perform partial redundency elimination on access paths -[no]dce perform dead code elimination -diva perform demand-driven induction variable analysis -[no]prop perform copy and constant propagation
-
-
Field Summary
Fields Modifier and Type Field Description static booleanCOMPACT_ARRAY_INITstatic booleanDCEstatic booleanFOLDstatic booleanINFERstatic booleanNUMBERstatic booleanOPT_STACK_1static booleanOPT_STACK_2static booleanPERSISTstatic booleanPREstatic booleanPROPstatic java.util.ListSKIPstatic booleanSTACK_ALLOCstatic booleanTRACEstatic booleanVERIFY
-
Constructor Summary
Constructors Constructor Description Main()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidbloatMethod(MethodEditor m, BloatContext context)Runs BLOAT on a method.static voiddumpcode(MethodEditor m)static voidmain(java.lang.String[] args)Parses the command line.
-
-
-
Field Detail
-
TRACE
public static boolean TRACE
-
PRE
public static boolean PRE
-
DCE
public static boolean DCE
-
PROP
public static boolean PROP
-
FOLD
public static boolean FOLD
-
INFER
public static boolean INFER
-
NUMBER
public static boolean NUMBER
-
PERSIST
public static boolean PERSIST
-
STACK_ALLOC
public static boolean STACK_ALLOC
-
COMPACT_ARRAY_INIT
public static boolean COMPACT_ARRAY_INIT
-
VERIFY
public static boolean VERIFY
-
OPT_STACK_1
public static boolean OPT_STACK_1
-
OPT_STACK_2
public static boolean OPT_STACK_2
-
SKIP
public static java.util.List SKIP
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
Parses the command line. The user must specify at least one class to optimize and the directory in which to place the optimized class files. The methods of the specified classes are then optimized according to the command line options.
-
bloatMethod
public static void bloatMethod(MethodEditor m, BloatContext context)
Runs BLOAT on a method.
-
dumpcode
public static void dumpcode(MethodEditor m)
-
-