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® XC8 Compiler

MPLAB® XC8 Compiler

The MPLAB® XC8 Compiler is a powerful, optimizing compiler that converts your ISO C code into high-assembly-language instructions to use on our 8-bit PIC® and AVR® microcontrollers. This compiler offers many command-line options and language extensions that enable full access to the device's hardware features and peripherals and allow you to fine-tune the generated code for your application. 

Whether you are working with a low-cost baseline PIC device or a high-performance PIC-18 or AVR device, the MPLAB XC8 Compiler will help you create a product that will meet your design goals.

Licenses


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

MPLAB XC8 C Compiler v3.10 Released


Version 3.10 of the MPLAB XC8 C Compiler for PIC and AVR MCUs is a major release that improves the efficiency and reliability of your projects.

This release of the compiler includes:

  • Enhanced reentrant stack analysis and optimization for PIC18 and enhanced mid-range devices
  • Improved shift optimizations on PIC devices
  • Improved code generation for 32-bit and 64-bit integer operations on AVR devices
  • Accurate disassembly provided for Integrated Development Environments (IDEs)

MPLAB XC8 Compiler Downloads


Title
Version Number
Date
MPLAB XC8 C-Compiler (Windows)
ba2992d8... e1ef
3.10 29 Aug 2025 Download
MPLAB XC8 C-Compiler (macOS)
42569224... 4145
3.10 29 Aug 2025 Download
MPLAB XC8 C-Compiler (Linux)
628803b9... 846e
3.10 29 Aug 2025 Download
MPLAB XC8 C-Compiler Source 3.10 29 Aug 2025 Download

MPLAB XC8 C Functional Safety Compiler v2.49 Released


Version 2.49 of the MPLAB XC8 C Functional Safety Compiler for PIC® and AVR® MCUs is a TÜV SÜD-certified functional safety compiler package that supports all our PIC and AVR devices 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 this latest release, the functional safety 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 XC8 Functional Safety Downloads


Title
Version Number
Date
MPLAB XC8 FuSa Compiler (Windows)
b32cafc9... abed
2.49 21 Jun 2024 Download
MPLAB XC8 FuSa Compiler (OSX)
9caf6d9b... 6c71
2.49 21 Jun 2024 Download
MPLAB XC8 FuSa Compiler (Linux)
21402fcc... 2c64
2.49 21 Jun 2024 Download
MPLAB XC8 FuSa ReadMe for PIC 2.49 21 Jun 2024 Download
MPLAB XC8 FuSa ReadMe for AVR 2.49 21 Jun 2024 Download