User manual
UM0036 Project creation and build
Doc ID 7705 Rev 11 137/385
User-defined options
This field allows you to enter the command for an option that you have defined for the C
compiler. The options that you type in these fields are immediately added to the command
line below. For more information on creating user-defined options, refer to Metrowerks’
STMicroelectronics ST7 Compiler reference manual.
Customizing Metrowerks compiler optimizations
To further customize optimizations, select Customize from the Optimizations list box. The
view in the C Compiler tab changes to that shown in Figure 91.
Figure 91. Metrowerks C compiler optimizations view
In this view, you can choose from the optimization options listed in Tabl e 48.
Table 48. Metrowerks C compiler optimization options
Option
(1)
Description
-Cni No integral promotion on characters
-Cns Do not use stack for temporary storage
-Cu Loop unrolling
-Obfv Optimize bitfields and volatile bitfields
-Obsr Generate always near calls
-Oc Common sub-expression elimination
-OdocF Dynamic option configuration for functions
-Of
Create sub-functions with common code when optimizing code size
(-Os)