The #OPTIMIZE compiler command causes the compiler to perform certain optimizations with respect to generated code. Do not use this compiler command unless there is an explicit need to override the environment default.
Syntax
#OPTIMIZE condition ON|OFF
Parameters
condition |
One or more conditions, separated by commas, that identify the type of optimization that should occur. The default is all conditions. Valid conditions include:
|
ON|OFF |
An indication of whether the compiler should optimize. The default #OPTIMIZE action is ON. However, if #OPTIMIZE is not included in the PSL code (implicity through UCOPTS or explicitely), the optimizer will not be invoked. |
When Became Available
Profile v6.3
Example
TRNDRV // Profile Transaction driver
//
#WARN
// turn all optimization on (FUNCTIONS,OBJECTS)
#OPTIMIZE
#OPTIMIZE FUNCTIONS,OBJECTS
#OPTIMIZE FUNCTIONS,OBJECTS ON
// turn optimization of FUNCTIONS off
#OPTIMIZE FUNCTIONS OFF
// turn optimization of OBJECTS on
#OPTIMIZE OBJECTS
#OPTIMIZE OBJECTS ON