optimize_for_size. NXP CodeWarrior Development Studio
Pubblicità
Pubblicità
Chapter 35 Pragmas for Optimization
For more information on the optimization the compiler performs for each optimization level, refer to the Targeting manual for your target platform.
These pragmas correspond to the settings in the Global Optimizations panel. By default, this pragma is disabled.
35.17 optimize_for_size
Controls optimization to reduce the size of object code.
#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.
35.18 optimizewithasm
Controls optimization of assembly language.
Syntax
#pragma optimizewithasm on | off | reset
Remarks
If you enable this pragma, the compiler also optimizes assembly language statements in
C/C++ source code.
This pragma does not correspond to any panel setting. By default, this pragma is disabled.
CodeWarrior Development Studio for Advanced Packet Processing Build Tools Reference Manual, Rev.
10.2, 01/2016
Freescale Semiconductor, Inc.
537
Scarica
Pubblicità