We detect you are using an unsupported browser. For the best experience, please visit the site using Chrome, Firefox, Safari, or Edge. X
Maximize Your Experience: Reap the Personalized Advantages by Completing Your Profile to Its Fullest. Update Here
Stay in the loop with the latest from Microchip. Update your profile while you are at it. Update Here
Complete your profile to access more resources. Update Here

MPLAB® XC32 Compiler

MPLAB® XC32 Compiler

The MPLAB® XC32 C/C++ Compiler is a powerful, optimizing compiler that converts your ISO C and C++ programs into high-performance, assembly-language instructions to run bare metal on our 32-bit PIC® microcontrollers and SAM microcontrollers and microprocessors. This compiler offers many command-line options and language extensions that enable full access to the device’s hardware features, including Tightly Coupled Memory (TCM), L1 cache coherence, and best-fit memory allocation.

Whether you're working on Microchip devices with 32-bit Arm®, MIPS® or PIC32A cores, the MPLAB XC32 Compiler empowers you to optimize and fine-tune your code for efficiency and minimize your development time for bare-metal or RTOS embedded applications. 

Licenses


The following MPLAB XC Unified Compiler Licenses are available and compatible with any MPLAB XC Compiler:

MPLAB XC32 C/C++ Compiler v5.00 Released


Upgrade to MPLAB XC32 v5.00 to leverage its significant performance, compatibility and safety improvements:

Modern GNU Compiler Collection (GCC) and Binutils Devices: MPLAB XC32 v5.00 is now based on GCC 13.2.1 and Binutils 2.41 devices that use Arm® and MIPS® cores to enable better code optimization, broader language support and tighter static analysis for safer embedded applications.

Static Analysis: Enhanced warnings catch misused memory, unsafe access patterns and logic errors in the early stages of development.

Improved Compatibility With Arm GNU Toolchain: MPLAB XC32 object files now store attributes in standard ELF sections, which improves interoperability with Arm GNU tools and other toolchains.

Device Support via Packs: Device-specific files, such as headers, linker scripts and startup code, are now delivered through Device Family Packs (DFPs), which reduces installation size by 1.4 GB and enables faster updates without a full compiler reinstall.

MPLAB XC32 Compiler Downloads


Title
Version Number
Date
MPLAB XC32 C-Compiler (Windows)
b0d15ad2... b3e4
5.00 11 Nov 2025 Download
MPLAB XC32 C-Compiler (macOS)
e5871c0c... 763d
5.00 11 Nov 2025 Download
MPLAB XC32 C-Compiler (Linux)
427921e7... f21c
5.00 11 Nov 2025 Download
MPLAB XC32 C-Compiler Source 5.00 11 Nov 2025 Download

MPLAB XC32 Compiler Documentation 


Title
Date
MPLAB XC32 C/C++ Compiler v5.00 Release Notes- ARM 11 Nov 2025 Download
MPLAB XC32 C/C++ Compiler v5.00 Release Notes- MIPS 11 Nov 2025 Download
MPLAB XC32 C/C++ Compiler v5.00 Release Notes- PIC32A 11 Nov 2025 Download
MPLAB XC32 C/C++ Compiler User's Guide for PIC32C/SAM MCUs 11 Nov 2025 Download
MPLAB XC32 C/C++ Compiler User's Guide for PIC32M MCUs 11 Nov 2025 Download
MPLAB XC32 Libraries Reference Manual for PIC32A MCU 11 Nov 2025 Download
MPLAB XC32 Assembler Linker Utilities User's Guide for PIC32A MCU 11 Nov 2025 Download
MPLAB XC32 C Compiler User's Guide for PIC32A MCU 27 Feb 2025 Download
MPLAB XC32 Assembler, Linker and Utilities User's Guide 19 Jun 2023 Download
MPLAB XC32 Users Guide for Embedded Engineers 30 Mar 2017 Download
32-Bit Language Tools Libraries 15 Oct 2012 Download
MPLAB XC32 Users Guide for Embedded Engineers - Code Examples 08 Aug 2023 Download

MPLAB  XC32 C/C++ Functional Safety Compiler v4.39 Released


Version 4.39 of the MPLAB XC32 C/C++ Functional Safety Compiler for PIC32M and SAM/PIC32C MCUs is a TÜV SÜD-certified functional safety compiler package to make your tool qualification effort easier. The package includes all the documentation and reports for a fully qualified development environment for ISO 26262 for any ASIL, IEC 61508 for any SIL, IEC 62304 and IEC 60730-1 functional safety standards. With the latest release, C++ and C applications are supported. This compiler package includes all the documentation and reports for a fully qualified development environment for EN 50128.

As a functional safety compiler, this compiler requires a functional safety license to operate. Once activated, all optimization levels and compiler features are available. For more information, see the functional safety manual that is provided in the documentation package when you purchase a functional safety license.

MPLAB XC32 Functional Safety Downloads


Title
Version Number
Date
MPLAB XC32 FuSa Compiler (Windows)
5b45449e... 534e
4.39 21 Jun 2024 Download
MPLAB XC32 FuSa Compiler (OSX)
c66bc7d9... e928
4.39 21 Jun 2024 Download
MPLAB XC32 FuSa Compiler (Linux)
f2ea7a4e... 9276
4.39 21 Jun 2024 Download
MPLAB XC32 FuSa ReadMe 4.39 21 Jun 2024 Download
MPLAB XC32 FuSa C-Compiler Source 4.39 21 Jun 2024 Download