We detect you are using an unsupported browser. For the best experience, please visit the site using Chrome, Firefox, Safari, or Edge. X

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.

MPLAB XC8 C Compiler v2.46 Released


Version 2.46 of the MPLAB XC8 C Compiler for PIC® and AVR® MCUs improves the efficiency and reliability of your projects and offers a wider range of support for newly released devices.

This release of the compiler:

  • Provides support for many new PIC and AVR devices
  • Adds support for promoting warnings to errors
  • Corrects a number of compiler issues

MPLAB XC8 Compiler Downloads


Title
Version Number
Date
MPLAB XC8 C-Compiler (Windows)
e7e51a39... 9968
2.46 23 Jan 2024 Download
MPLAB XC8 C-Compiler (macOS)
4a105af1... f243
2.46 23 Jan 2024 Download
MPLAB XC8 C-Compiler (Linux)
16558f8c... 092b
2.46 23 Jan 2024 Download
MPLAB XC8 C-Compiler Source 2.46 23 Jan 2024 Download

MPLAB XC8 Functional Safety Downloads


Title
Version Number
Date
MPLAB XC8 FuSa Compiler (Windows)
96e9d4b4... 053b
2.39 18 May 2022 Download
MPLAB XC8 FuSa Compiler (OSX)
d0e9a407... 186b
2.39 18 May 2022 Download
MPLAB XC8 FuSa Compiler (Linux)
d7746b7b... 13b1
2.39 18 May 2022 Download
MPLAB XC8 FuSa ReadMe for PIC 2.39 18 May 2022 Download
MPLAB XC8 FuSa ReadMe for AVR 2.39 18 May 2022 Download