SandMark version 2.0


sandmark.optimise
Class Main

java.lang.Object
  |
  +--sandmark.optimise.Main

public class Main
extends java.lang.Object

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 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
(package private) static boolean ANNO
           
(package private) static java.lang.String[] ARGS
           
(package private) static boolean CLOSURE
           
static boolean COMPACT_ARRAY_INIT
           
(package private) static EDU.purdue.cs.bloat.context.BloatContext context
           
(package private) static java.text.DateFormat dateFormat
           
static boolean DCE
           
(package private) static boolean DEBUG
           
(package private) static boolean DIVA
           
static boolean FOLD
           
(package private) static boolean FORCE
           
static boolean INFER
           
(package private) static EDU.purdue.cs.bloat.file.ClassFileLoader loader
           
(package private) static java.lang.String METHOD
           
static boolean NUMBER
           
(package private) static java.util.List ONLY
           
static boolean OPT_STACK_1
           
static boolean OPT_STACK_2
           
static boolean PERSIST
           
static boolean PRE
           
static boolean PROP
           
static java.util.List SKIP
           
static boolean STACK_ALLOC
           
static boolean TRACE
           
(package private) static boolean VERBOSE
           
static boolean VERIFY
           
 
Constructor Summary
Main()
           
 
Method Summary
static void bloatMethod(EDU.purdue.cs.bloat.editor.MethodEditor m, EDU.purdue.cs.bloat.context.BloatContext context)
          Runs BLOAT on a method.
static void dumpcode(EDU.purdue.cs.bloat.editor.MethodEditor m)
           
static void main(java.lang.String[] args, EDU.purdue.cs.bloat.file.ClassFileLoader l, java.io.File f1)
          Parses the command line.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG

static boolean DEBUG

VERBOSE

static boolean VERBOSE

TRACE

public static boolean TRACE

FORCE

static boolean FORCE

CLOSURE

static boolean CLOSURE

dateFormat

static java.text.DateFormat dateFormat

DIVA

static boolean DIVA

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

ANNO

static boolean ANNO

VERIFY

public static boolean VERIFY

OPT_STACK_1

public static boolean OPT_STACK_1

OPT_STACK_2

public static boolean OPT_STACK_2

ARGS

static java.lang.String[] ARGS

SKIP

public static java.util.List SKIP

ONLY

static java.util.List ONLY

METHOD

static java.lang.String METHOD

context

static EDU.purdue.cs.bloat.context.BloatContext context

loader

static EDU.purdue.cs.bloat.file.ClassFileLoader loader
Constructor Detail

Main

public Main()
Method Detail

main

public static void main(java.lang.String[] args,
                        EDU.purdue.cs.bloat.file.ClassFileLoader l,
                        java.io.File f1)
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(EDU.purdue.cs.bloat.editor.MethodEditor m,
                               EDU.purdue.cs.bloat.context.BloatContext context)
Runs BLOAT on a method.


dumpcode

public static void dumpcode(EDU.purdue.cs.bloat.editor.MethodEditor m)

SandMark version 2.0

Mon Jun 17 12:30:47 MST 2002