SLAU646F September 2015 – June 2020
Figure 3-7 shows the MSP430 GCC Optimization settings window.
Table 3-5 describes the options that are available for MSP430 GCC Optimization settings.
Option | Description |
---|---|
Optimization Level | Specifies the
optimizations that the compiler applies to the generated object code. The options
available are:
|
Make 'char'
unsigned by default (-funsigned-char) |
Enable this option to ensure that the char is signed. |
Place each function into its own section (-ffunction-sections) | Enable this option to place each function in its own section in the output file. |
Place data items into their own section (-fdata-sections) | Enable this option to place each data item in its own section in the output file. |
Convert floating
point constants to single precision constants (-fsingle-precision-constant) |
Treat floating-point constants as single precision instead of implicitly converting them to double-precision constants. |
Use the -ffunction-sections and -fdata-sections options in conjunction with the --gc-sections linker option to reduce code size by allowing the linker to remove unused sections.