22 Optimizations
The MPLAB XC32 C/C++ Compiler can optimize the assembly code generated from individual modules or from across the whole program. Even when optimization features are enabled, they can only be applied if very specific conditions are met. As a result, you might see that some lines of source code are optimized, but other similar lines are not.
The optimization level determines the available optimizations, which are listed in the following table.
| Level | Optimization sets available |
|---|---|
O0 |
|
O1 |
|
O2 |
|
O3 |
|
Os |
|
