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

It is recommended that you use the latest compiler version for development. However, if you need to use an older version, go to MPLAB® Development Ecosystem Downloads Archive to find and install the version you need. Multiple versions of the compiler can be installed on the same computer. See 4.1.3 Can I Install More Than One Version of the Same Compiler?

MPLAB X IDE

When you create a project using the Project Wizard, you will select a versioned compiler which will be used to build the project. If you want to select a different version, open the Project Properties window (File > Project Properties) and select the Configuration category (Conf: [default]). A list of installed MPLAB XC-DSC versioned compilers will be shown in Compiler Toolchain on the bottom right of the window. Click on a version to select it for the project. Once selected, click on items under the XC-DSC category to set up compiler options.

MPLAB for VS Code

When you create a project using the command palette Quick Input, you will select a versioned compiler which will be used to build the project. If you want to select a different version, enter in the command palette MPLAB: Edit project properties (UI) and then under Toolchain use the drop-down list to find and select the desired registered versioned compiler. Once selected, click on items under Toolchain to set up compiler options.