4.2.3 How Can I Select Which Compiler Version to Build With?

Both the compilation and installation processes were designed to allow you to have more than one compiler version installed at the same time.

In MPLAB X IDE, select the compiler to use for building a project by opening the Project Properties window (File > Project Properties) and selecting the Configuration category (Conf: [default]). A list of MPLAB XC-DSC compiler versions is shown in the Compiler Toolchain, on the far right of the window. Select the MPLAB XC-DSC compiler you require.

Once selected, the controls for that compiler are shown by selecting the XC-DSC global options, XC-DSC Compiler, and XC-DSC Linker categories. These reveal a pane of options on the right; with each category having several panes which can be selected from a pull-down menu that is near the top of the pane.