Microchip logo
  • All
  • Products
  • Documents
  • Applications Notes


MPLAB® XC Compilers

Available as free, unrestricted-use downloads, our award-winning MPLAB® XC C Compilers are comprehensive solutions for your project’s software development. Finding the right compiler to support your device is simple:

  • MPLAB XC8 supports all 8-bit PIC® and AVR® microcontrollers (MCUs)
  • MPLAB XC16 supports all 16-bit PIC MCUs and dsPIC® Digital Signal Controllers (DSCs)
  • MPLAB XC32/32++ supports all 32-bit PIC and SAM MCUs and MPUs

Are you looking for code optimizations? Our free MPLAB XC C Compiler comes with the majority of the optimizations you need to reduce your code by up to 70% and increase efficiency. Specifically, the free compiler contains these optimizations:

  • -O0 - Ensures that your code is in its pristine state
  • -O1 - Invokes all optimizations that won't affect debugging
  • -O2 - Invokes a balanced set of speed and size optimizations

When you purchase one of our PRO licenses, you also get the following optimizations:

  • -Os - Gives maximum code size reductions
  • -O3 - Gives the best speed optimizations
  • -mpa (Procedural Abstraction) - Reduces code size even further

When combined with our free and award-winning MPLAB X Integrated Development Environment (IDE), the fully graphical frontend provides:

  • Editing errors and breakpoints that match corresponding lines in the source code
  • Single stepping through C and C++ (C++ only available in MPLAB XC32++ compilers) source code to inspect variables and structures at critical points
  • Data structures with defined data types, including floating point, display in watch windows

License Change Notice:

Our MPLAB® XC C Compiler PRO license provides valuable optimizations that reduce the size of your code and increase the efficiency of your software. We also offer our 12-month High Priority Access (HPA) product to maintain your PRO license to allow updating your compiler to the latest version, provide you with priority access to technical support and give you free shipping of development tools that you order on Microchip’s Purchasing and Client Services e-commerce website.

On September 1, 2020, the following types of MPLAB XC C compiler licenses will change in how they function:

  • MPLAB XC Workstation Licenses: Part Numbers SW006021-2, SW006022-2, SW006023-3 and SW006021-2C, SW006022-2C, SW006023-3C
  • MPLAB XC Network Server Licenses: Part Numbers SW006021-2N, SW006022-2N, SW006023-3N
  • MPLAB XC Site Licenses: Part Numbers SW006021-SITE, SW006022-SITE, SW006023-SITE

These licenses will change in the following ways:

  • All MPLAB XC PRO licenses activated after this date will expire after one year unless the HPA is renewed
  • An existing MPLAB XC PRO license will change to this new model as the HPA is renewed and applied to it

Note that any existing licenses will continue to function as they always have, and there will be no extra fees for letting the HPA lapse. HPA itself will not change. It will still provide you with updates to new compiler versions, priority access to technical support and free shipping on your development tool orders.

We are committed to continuously improving our world-class line of MPLAB XC compilers to provide you with valuable and easy-to-use software development solutions.  Please email us at SW.Licensing@microchip.com if you have any questions.




No results were found for your requirements.


MPLAB XC Compiler Choices

Watch our MPLAB XC Compiler Family Webinar to learn more about the features and capabilities of these compilers.

MPLAB XC Compiler Optimizations

The optimizations found on MPLAB XC C Compilers provide code size reductions and speed enhancements that benefit your design projects. PRO license is available for designs that require maximum code reductions and best performance. The MPLAB XC C Compiler contains a free, 60-day trial of a PRO license for evaluation when activated. 

MPLAB XC C Compiler Licenses – Go PRO

Need to optimize your code size reduction or get better speed from your project’s software? PRO licenses are available to unlock the full potential of the MPLAB XC C compiler’s advanced-level optimizations. See our list of flexible licensing options in the Features section below.

Now Available – MPLAB XC Functional Safety Licenses

Now Microchip offers a TÜV SÜD certified functional safety compiler package that supports all our PIC, dsPIC, AVR and SAM devices to make your tool qualification effort easier. The package includes all the documentation and reports for a fully qualified development environment for functional safety standards ISO26262, IEC 61508, IEC 62304 and IEC60730. Functional safety licenses are available in the downloads tab below. Note that these compilers only unlock when a functional safety license is purchased. For more information on functional safety licenses:

MPLAB Code Coverage

Measure how well your code is tested using MPLAB Code Coverage. This licensed feature is available in all MPLAB XC Compilers and is fully integrated into MPLAB X IDE to provide analytical and navigational tools, dashboards, summaries and reports.