20 Optimizations

MPLAB XC16 C Compiler license types are Free, EVAL and PRO. The initial compiler download begins as an Evaluation (EVAL) license allows 60 days to evaluate the compiler as a Professional (PRO) license with the most optimizations. The Free license has minimal optimizations. The PRO license can be purchased any time.

Different optimizations may be set ranging from no optimization to full optimization, depending on your compiler license. When debugging code, you may prefer not to optimize your code to ensure expected program flow.

Figure 20-1. Optimization Levels per License
LicenseCostOptimization Options*
Professional (PRO)Yes-O0, -O1, -O2, -O3, -Os, -mpa
FreeNo-O0, -O1, -O2
Evaluation (EVAL)No

PRO optimizations enabled for 60 days; afterward reverts to Free optimizations.

* See Options for Controlling Optimization.