User manual

Project creation and build UM0036
138/385 Doc ID 7705 Rev 11
Customizing Metrowerks C compiler input
The compiler input settings allow you to specify the options defining the files to be used in
compiling your application.
In the C Compiler tab, select Input in the Category list box. The view in the C Compiler tab
changes to that shown in Figure 92.
-Oi=c$CodeSize Enables inline expansion
-Oi=c0 Switches on inlining except for Pragma INLINE
-Oi=OFF Switches off inlining except for Pragma INLINE
-OiLib Inline library functions
-Ol0 Totally disable loop variables allocation in registers
-Ona Disable alias checking
-Onb Disable peephole optimization
-Onbf Disable optimize bitfields
-OnBsr Disable far-to-near optimization
-Onbt Disable ICG level branch tail merging
-Onca Disable and constant folding
-Oncn Disable any constant folding in case of a new constant
-OnCopyDown Don't generate copy down information for zero values
-OnCstVar Disable constant variable replaced by value
-One Disable and low level common sub-expression elimination
-Onf
Create sub-functions with common code when optimizing code
execution speed (-Ot)
-OnPMNC Disable code generation for NULL Pointer to Member check
-Onr Disable optimizing register accesses
-Ont Disable all tree optimizations
-Onu Never optimize dead assignments
-Or Allocate local variables to registers
-Os Minimize code size
-Ot Maximize execution speed
-Ou Always optimize dead assignments
-Rpe Large return value with temporary elimination
Rpt Large return value by pointer
1. For a complete description of optimization options, refer to the STMicroelectronics ST7 Compiler user
manual from Metrowerks.
Table 48. Metrowerks C compiler optimization options (continued)
Option
(1)
Description