User`s guide

Pragmas for the DSP56800 and DSP56800E
Pragma Reference
404
Targeting MC56F83xx/DSP5685x Controllers
Remarks
If you enable this pragma, the compiler replaces multiple occurrences of one variable
with a single occurrence.
This pragma does not correspond to any panel setting in the C/C++ Language
panel.
To check this setting, use __option (opt_propagation), described in
Checking Settings
. By default, this pragma is disabled.
opt_strength_reduction
Controls the use of strength reduction optimization.
Prototype
#pragma opt_strength_reduction on | off | reset
Remarks
If you enable this pragma, the compiler replaces array element arithmetic instructions
with pointer arithmetic instructions to make loops faster.
This pragma does not correspond to any panel setting in the C/C++ Language
panel.
To check this setting, use __option (opt_strength_reduction), described
in Checking Settings
. By default, this pragma is disabled.
opt_strength_reduction_strict
Uses a safer variation of strength reduction optimization.
Prototype
#pragma opt_strength_reduction_strict on | off | reset
Remarks
Like the opt_strength_reduction
pragma, this setting replaces multiplication
instructions that are inside loops with addition instructions to speed up the loops.
However, unlike the regular strength reduction optimization, this variation ensures