User`s guide
Pragmas for the DSP56800 and DSP56800E
Pragma Reference
401Targeting MC56F83xx/DSP5685x Controllers
Prototype
#pragma only_std_keywords on | off | reset
Remarks
The C/C++ compiler recognizes additional reserved keywords. If you are writing code
that must follow the ANSI standard strictly, enable the pragma
only_std_keywords.
This pragma corresponds to the ANSI Keywords Only setting in the C/C++
Language panel. To check this setting, use __option (only_std_keywords),
described in Checking Settings
. By default, this pragma is disabled.
opt_common_subs
Controls the use of common subexpression optimization.
Prototype
#pragma opt_common_subs on | off | reset
Remarks
If you enable this pragma, the compiler replaces similar redundant expressions with a
single expression. For example, if two statements in a function both use the expression
a * b * c + 10
the compiler generates object code that computes the expression only once and applies
the resulting value to both statements.
The compiler applies this optimization to its own internal representation of the object
code it produces.
This pragma does not correspond to any panel setting in the C/C++ Language
panel.
To check this setting, use __option (opt_common_subs), described in
Checking Settings
. By default, this pragma is disabled.