User`s guide
Pragmas for the DSP56800 and DSP56800E
Pragma Reference
406
Targeting MC56F83xx/DSP5685x Controllers
For more information on the optimization the compiler performs for each optimization
level, refer to the Code Warrior IDE User’s Guide.
These pragmas correspond to the settings in the Global Optimizations panel. By
default, this pragma is disabled.
optimize_for_size
Controls optimization to reduce the size of object code.
Prototype
#pragma optimize_for_size on | off | reset
Remarks
This setting lets you choose what the compiler does when it must decide between
creating small code or fast code. If you enable this pragma, the compiler creates
smaller object code at the expense of speed. It also ignores the inline directive and
generates function calls to call any function declared inline. If you disable this
pragma, the compiler creates faster object code at the expense of size.
The pragma corresponds to the Optimize for Size setting on the Global
Optimizations panel. To check this setting, use __option
(optimize_for_size), described in Checking Settings
. By default, this
pragma is disabled.
packstruct
Controls the alignment of long words in structures.
Compatibility
This pragma is compatible with the DSP56800, but it is not compatible with the
DSP56800E.
Prototype
#pragma packstruct on | off | reset