#pragma optimize (Preprocessor Statement)


Designates optimization to be executed for each program.


#pragma optimize ("<Option list>", {on/off})


This statement designates optimization to be executed for each program. Describe this statement on the line before the PROGRAM declaration statement or on a valid statement line.
Designate an arbitrary number of parameters, listed on the following table for <Option list>.
Parameter
Optimization type
A
Deletes the array inspection code.
C
Deletes the cycle time calculation code.

If you effectively use the optimization option, you can increase the execution speed of a non-action instruction by 10% to 20 %.


If a command is entered to the program,this command has priority over the setting value of the project parameter.


#pragma optimize( "ac", ON )
'Deletes the array inspection code and makes the
'cycle time calculation code valid.


Top