chipKIT® Development Platform

Inspired by Arduino™

Building the GCC C and C++ compiler for target pic32mx

Created Thu, 26 May 2011 18:00:13 +0000 by doumdi


Thu, 26 May 2011 18:00:13 +0000

There is the gcc compiler source code on github :


Do you have a procedure for building the pic32mx-gcc and pic32mx-g++ compilers from those sources ? My goal is to test the Arduino "layer" you have built for the chipKIT/PIC32 with the following project under development :


Any help will be appreciated!



Thu, 26 May 2011 20:09:28 +0000

I renamed the repository

I need to write up the build instructions for this repository. In the meantime, you could download mpide and pull out the prebuilt compiler toolchain.


Thu, 26 May 2011 20:16:28 +0000

Thanks for the answer. I have effectively found the pre-compiled binaries.

Is this a limited g++ / gcc version like the one provided on the Microchip's C32 compiler web site?

Also, this would be great if we could edit code through MPLABX instead of the Arduino IDE.


Thu, 26 May 2011 21:02:21 +0000

This is a fork of the compiler from about October 2010. So it's ahead of the v1.12 release, but behind the upcoming v2.00 release. Basically it's similar to C32 v1.12, but updated to GCC 4.5.1. Also, the default linker scripts are modified to work with the chipKIT bootloader. Clear as mud? There are no optimization restrictions in this build, but it will likely be updated less often than the official MPLAB C32 compiler.