3.7.1.2.3 XC8 Compiler - Optimizations options
Note that some of the compiler options specified by fields in other Project Property Categories can affect the size and execution speed of your project. Consider using the Compiler Advisor, accessible via the MPLAB X IDE
menu item, to compare the size of your project when built with different combination of compiler options.- Optimization level
- This selector controls the level to which programs are optimized. See 3.6.6 Options for Controlling Optimization.
- Debug
- This checkbox inhibits aggressive optimization that can impact on the debugability of code. See 3.6.6.5 Og: Better Debugging Option.
- Prepare functions for garbage collection
- Selecting this checkbox places each function in its own section to assist with garbage collection and potential code size reductions. See 3.6.6.9 Function-sections Option.
- Prepare data for garbage collection
- Selecting this checkbox places each object in its own section to assist with garbage collection and potential code size reductions. See 3.6.6.7 Data-sections Option.
- Allocate only as many bytes as needed by enum types
- Selecting this checkbox allocates the smallest possible integer type to an
enum
such that the range of possible values can be held. See 3.6.13.1 Short-enums Option. - Use common tentative definitions
- Selecting Enable from this drop-down menu allows the linker to resolve all tentative definitions of the same variable in different compilation units to the same object. Selecting Disable inhibits the merging of tentative definitions by the linker. Selecting Default enables tentative definition resolution. See 3.6.3.3 Common Option.