5.1 XC32 Global Options
The following are global feature controls displayed in the MPLAB X IDE and VS Code project property dialogs, along with their corresponding driver options. When used, these options are applied at each stage of the compilation process.
| Option | Description | Command Line |
|---|---|---|
|
Stack Smashing Protector |
Selects those functions protected from stack overflow. | -fstack-protector
|
| Override default device support | The Do not override selection will let the MPLAB X IDE provide a list of its own DFPs that can be selected. The Compiler location will use the DFPs that ship with the compiler rather than the IDE. | -mdfp |
| Don’t delete intermediate files | Don’t delete intermediate Files. Place them in the object directory and name them based on the source file. | -save-temps=obj |
| Link-Time Optimizations | When this feature is enabled, the build
will be constrained in the following ways: - The per-file build settings will be ignored - The build will no longer be an incremental one (full build only) | -flto |
| Common include dirs | Directory paths entered here will be
appended to the already existing include paths of the compiler. Relative paths are from the MPLAB X IDE project directory. | -I
dir |
| Data TCM size in bytes | Enable data Tightly Coupled Memory with the specified size. | -mdtcm=n where
n is the size specified by
user |
| Instruction TCM size in bytes | Enable instruction Tightly Coupled Memory with the specified size. | -mitcm=n |
| Locate stack data in TCM | Locate the stack in data Tightly Coupled Memory. | -mstack-in-tcm |
