Specifies whether to invoke the optimization phase of the Compiler.
Syntax
-opt [1|2|3]
-noopt
Behavior
- -opt
- Invoke the optimization phase.
- Parameters
-
- 1
- Operator pattern replacement and Boolean conditional expression optimizations.
- 2
- Common subexpression elimination; all level 1 optimizations.
- 3
- All level 1 and level 2 optimizations plus the following:
- branch chaining
- dead code elimination
- strength reduction
- loop induction
- loop invariant code motion
- removal of redundant register saves and loads
- removal of mathematical identities
- peephole optimizations
- constant folding
This is the default when
-opt is specified without a parameter.
- Dependencies
-
When used with the
-deb option:
- -opt can be set to
1 or
2, but not
3
- When no level is specified, the default is
-opt 2
- -noopt
- Compile without optimization. Default.