User`s guide

Pragmas for the DSP56800 and DSP56800E
Pragma Reference
380
Targeting MC56F83xx/DSP5685x Controllers
const_strings
Controls the const-ness of string literals.
Prototype
#pragma const_strings [ on | off | reset ]
Remarks
If you enable this pragma, the compiler will generate a warning when string literals are
not declared as const. Listing C.5
shows an example.
Listing C.5 const_strings example
char *string1 = "hello"; /*OK, if const_strings is disabled*/
const char *string2 = "world"; /* Always OK */
This pragma does not correspond to any setting in the C/C++ Language panel. To
check this setting, use __option (const_strings), described in Checking
Settings.
defer_codegen
Controls the inlining of functions that are not yet compiled.
Prototype
#pragma defer_codegen on | off | reset
Remarks
This setting lets you use inline and auto-inline functions that are called before their
definition:
Listing C.6 defer_codegen example
#pragma defer_codegen on
#pragma auto_inline on