User`s guide

Pragmas for the DSP56800 and DSP56800E
Pragma Scope
374
Targeting MC56F83xx/DSP5685x Controllers
#include <smallfuncs.h>
#pragma profile reset
// If the Generate Profiler Calls setting was originally on,
// turns it back on. Otherwise, the setting remains off
Suppose that you use #pragma profile on instead of #pragma profile
reset. If you later disable Generate Profiler Calls from the Preference dialog
box, that pragma turns it on. Using reset ensures that you do not inadvertently
change the settings in the Project Settings dialog box.
TIP
To catch pragmas that the CodeWarrior C compiler does not
recognize or the DSP56800/E target does not support, use the
warn_illpragma pragma. See also “Illegal Pragmas.”
Pragma Scope
The scope of a pragma setting is usually limited to a single file.
As discussed in Pragma Syntax
you should use on or off after the name of the
pragma to change its setting to the desired condition. All code after that point is
compiled with that setting until either:
You change the setting with on, off, or (preferred) reset.
You reach the end of the file.
At the beginning of each file, the compiler reverts to the project or default settings.