User`s guide

Pragmas for the DSP56800 and DSP56800E
Pragma Reference
408
Targeting MC56F83xx/DSP5685x Controllers
Remarks
If you enable this setting, the compiler collects all string constants into a single data
object so that your program needs only one TOC entry for all of them. While this
decreases the number of TOC entries in your program, it also increases your program
size because it uses a less efficient method to store the address of the string.
If you disable this setting, the compiler creates a unique data object and TOC entry for
each string constant.
Enable this setting if your program is large and has many string constants.
The Pool Strings setting corresponds to the pragma poolstring. To check this setting,
use __option (pool_strings), described in Checking Settings
. By
default, this pragma is disabled.
pop, push
Save and restore pragma settings.
Prototype
#pragma push
#pragma pop
Remarks
The pragma push saves all the current pragma settings. The pragma pop restores all
the pragma settings that resulted from the last push pragma. For example, see Listing
C.15.
Listing C.15 push and pop Example
#pragma peephole on
#pragma packstruct on
#pragma push // push all compiler settings
#pragma peephole off
#pragma packstruct off
// pop restores "peephole" and "packstruct"
#pragma pop