User`s guide
Pragmas for the DSP56800 and DSP56800E
Pragma Reference
405Targeting MC56F83xx/DSP5685x Controllers
that the optimization is only applied when the array element arithmetic is not of an
unsigned type that is smaller than a pointer type.
This pragma does not correspond to any panel setting in the C/C++ Language
panel.
To check this setting, use __option (opt_strength_reduction_strict),
described in Checking Settings
. By default, this pragma is disabled.
opt_unroll_loops
Controls the use of loop unrolling optimization.
Prototype
#pragma opt_unroll_loops on | off | reset
Remarks
If you enable this pragma, the compiler places multiple copies of a loop’s statements
inside a loop to improve its speed.
This pragma does not correspond to any panel setting in the C/C++ Language
panel.
To check this setting, use __option (opt_unroll_loops), described in
Checking Settings
. By default, this pragma is disabled.
optimization_level
Controls global optimization.
Prototype
#pragma optimization_level 0 | 1 | 2 | 3 | 4
Remarks
This pragma specifies the degree of optimization that the global optimizer performs.
To select optimizations, use the pragma optimization_level with an argument
from 0 to 4. The higher the argument, the more optimizations performed by the global
optimizer.