User`s guide
Pragmas for the DSP56800 and DSP56800E
Pragma Reference
409Targeting MC56F83xx/DSP5685x Controllers
If you are writing new code and need to set a pragma setting to its original value, use
the reset argument, described in “Pragma Syntax.”
This pragma does not correspond to any panel setting in the C/C++ Language panel.
readonly_strings
Controls the output of C strings to the read only data section.
Prototype
#pragma readonly_strings on | off | reset
Remarks
If you enable this pragma, C strings used in your source code (for example,
"hello") are output to the read-only data section (.rodata) instead of the global data
section (.data). In effect, these strings act like const char *, even though their
type is really char *.
For the DSP56800, this pragma corresponds to the "Make Strings Read Only" panel
setting in the M56800 Processor settings panel. To check this setting, use __option
(readonly_strings), described in Checking Settings
.
For the DSP56800E, there is no "Make Strings Read Only" panel setting in the
M56800E Processor settings panel.
require_prototypes
Controls whether or not the compiler should expect function prototypes.
Prototype
#pragma require_prototypes on | off | reset
Remarks
This pragma only works for non-static functions.