Class Main
java.lang.Object
EDU.purdue.cs.bloat.optimize.Main
Usage: 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 -classpath
list 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 invalid input: '<'class|package.*> skip the given class or package -only
invalid input: '<'class|package.*> 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
invalid input: '<'n|all> 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
FieldsModifier and TypeFieldDescriptionstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic Liststatic booleanstatic booleanstatic boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidbloatMethod(MethodEditor m, BloatContext context) Runs BLOAT on a method.static voidstatic voidParses the command line.
-
Field Details
-
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
-
-
Constructor Details
-
Main
public Main()
-
-
Method Details
-
main
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.- See Also:
-
bloatMethod
Runs BLOAT on a method. -
dumpcode
-