Installing MPLAB® XC-DSC Compiler

Last modified by Microchip on 2026/07/28 13:56

All MPLAB XC Compiler Licenses Now Free

As of July 8, 2026, all MPLAB® XC compilers are now available without license restrictions, providing users with full access to compiler optimization capabilities at no cost. 

Please visit the MPLAB XC Compilers homepage to download the compiler that is right for you.

Download MPLAB XC-DSC Installer

Download the MPLAB XC-DSC Compiler for your operating system.  The compiler downloads are about halfway down the page.

Download the installer appropriate to your operating system:

Run Installer for Windows®

Go to the location where you downloaded the installer. Unzip the downloaded file and run the installer:
xc-dsc-vX.XX-full-install-windows64-installer.exe.

Depending on your Windows security settings, you may get a window asking if you are sure you want to run this program. Answer Yes.

Run Installer for Linux®

You may need to make the file executable. In a terminal, go to the directory where you downloaded the installer and run the command:​chmod u+x xc-dsc-vX.XX-full-install-linux64-installer.run

Then as root or using sudo, run the installer:

sudo ./xc-dsc-vX.XX-full-install-linux64-installer.run

Run Installer for macOS®

Go to the location where you downloaded the installer. Double-click on the downloaded file to unpack it and run the installer:

 xc-dsc-vX.XX-osx-installer.dmg

You may get a warning message window. You can click on Open to continue.

warning message about running downloaded files

Your computer's login and password need to be entered if you have enabled that protection for new installations. If you don't have a password enabled, you can click on OK to continue.

username and password window

Note: All the remaining steps are the same for all three operating systems 


Setup

Click Next >.

Setup-MPLAB XC-DSC C Compiler

 


Accept License Agreement

Click on the radio button next to I accept the agreement.

Click Next >.

License agreement

 


Installation Directory

Use the default installation location or choose a different one, if you prefer.

Click Next >.

Installation Directory


Compiler Settings

  • Apply settings to all users of this machine.
    • Leave checked or uncheck if required in your environment.
  • Add xcdsc to the PATH environment variable
    • Not generally required unless you plan to use XC16-DSC from the command line (terminal or script).

Click Next >.

Select compiler settings


Ready to Install Compiler

Click Next >.

Install the compiler

 


Setup

Wait while the installer unpacks and installs all the files.

Wait while the installer unpacks and installs all the files


Device Support from Device Family Packs (DFPs)

MPLAB XC C compilers no longer include device-specific support files.

This information can be found in DFPs.

XC-DSC Device Support from DFPs


Installation Complete

Click Finish.

Choose finish

Back to Top