User`s guide
373Targeting MC56F83xx/DSP5685x Controllers
C
Pragmas for the DSP56800
and DSP56800E
You can configure the compiler globally for a project by changing the settings in the
C/C++ Language
panel. You can also control compiler behavior in your code in a
localized manner by including the appropriate pragmas.
Many of the pragmas correspond to settings in the C/C++ Language
panel and the
settings panels for processors and operating systems.
Typically, you use these panels to select the settings for most of your code and use
pragmas to change settings for special cases. For example, within the C/C++
Language panel, you can disable a time-consuming optimization and then use a
pragma to re-enable the optimization only for the code that benefits the most.
The sections in this chapter are:
• Pragma Syntax
• Pragma Scope
• Pragma Reference
• Illegal Pragmas
• Checking Settings
Pragma Syntax
Most pragmas have this syntax:
#pragma setting-name on | off | reset
Generally, use on or off to change the setting, then use reset to restore the original
setting, as shown below:
#pragma profile off
// If the Generate Profiler Calls setting is on,
// turns it off for these functions.