5.8.3.3 XC-DSC C Compiler - Optimization
Notes:
- N/A means MPLAB X IDE option not available in VS Code.
- VSC means VS Code option is not available in MPLAB X IDE.
| Option | Description | Command Line |
|---|---|---|
| Optimization Level | Select an optimization level.
Equivalent to -On option, where
n is an option. See 6.7.6 Options for Controlling Optimization. | -On |
| Do not override 'inline' | VSC: Set compiler's override of 'inline' keyword and options for -O1 and -Os; by default the compiler will not inline at these levels. | |
| Unroll loops | Check to perform the optimization
of loop unrolling. This is only done for loops whose number of
iterations can be determined at compile time or run time. Uncheck to not unroll loops. | -funroll-loops |
| Omit frame pointer | Check to not keep the Frame Pointer
in a register for functions that don’t need one. Uncheck to keep the Frame Pointer. | -fomit-frame-pointer |
| Unlimited procedural abstraction | Enable the procedure abstraction optimization. There is no limit on the nesting level. | -mpa |
| Procedural abstraction level | Enable the procedure abstraction optimization up
to level n.
| -mpa=n |
| Align arrays | VSC: Set the minimum alignment for array variables to be the largest power of two less than or equal to their total storage size, or the biggest alignment used on the machine, whichever is smaller. |
