CC5X C compiler for PICmicro

CC5X main page  |  Download

CC5X Free Package

The free edition supports up to 1024 instructions in any single C module. Several modules can be linked together by MPLINK (the Microchip linker) to build larger programs. The variable size is limited to 16 bit, signed and unsigned, plus 24 bit floating point. The generated code is compact, but full optimization is not available.

Note that it is recommended to use few C modules to get compact code. The reason is that the linker (MPLINK) will not allow global optimization of local variable space allocation and bank bit updating. Because of this, it is recommended to put all C code into one module. Assembly modules can be added as required.

A licensed edition can be ordered to save code space. The saving is estimated to be less than 1% for the 16C54, around 5% for the 16F84, and 5 - 10% for the 12C509. The actual code space saving is printed during compilation.

Support is not available to users of the free edition. However, please report compiler bugs, documented according to the provided description. If you do this, expect the bug to be corrected in the next version released.

Restrictions: The free edition can be used to generate code for all prototype and non-commercial systems without restrictions. Permission is given to use the generated code in ONE commercial system. Permission is required to distribute the FREE edition. Making any changes to the compiler is strongly prohibited.

When evaluating the generated code, remember that the free edition will not optimize updating of the bank and page bits, or loading of the workspace (W) register.

The downloadable packages contains example code and txt files. The compiler is a 32 bit console application that can be started from the command line and from many IDE applications (like MPLAB).

Download the file by using the right mouse button (browser dependent), and select Save Link As or Save Target As to save the file. Then start or unzip it.

cc5xfree.exe (~900k) - Windows installation program
cc5xfree.zip
(~500k)  - ZIP file alternative (manual installation)

It is recommended to start by reading the included files install.txt and readme.txt.

LINUX users: You can use dosemu to run MSDOS programs, and wine to run Win32 programs. The details are not available here. 

cc5x-d16.zip (~400k) : Old MSDOS (DOS16) command-line compiler application package.




CC5X Test Edition

The Test Edition is NOT a complete compiler. Up to 8k words of code can be generated, but NO hex file. The assembly file is MODIFIED (labels are not complete). This TEST edition supports 8, 16, 24 and 32 bit integers, fixed and floating point math, leanslice multitasking and FULL optimization (same as EXTENDED edition). This allows code development and conversion of existing applications to check code size. Download the file by using the right mouse button (browser dependent), and select Save Link As or Save Target As to save the file. Then start or unzip it.

cc5xtest.exe (~900k) - Windows installation program
cc5xtest.zip
(~500k)   - ZIP file alternative (manual installation)

End line