Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does GCC support PIC (particularly the problematic PIC16 family)

Tags:

gcc

pic

Free PIC C compiler
PIC16 C compiler

...aaaaand noone mentions gcc. Googling lead me only to flame wars over the forums if PICs are suitable for C, and that their (at least 6 - series) 30 instruction assemblers are very simple to learn.

Does gcc support for PIC16?

like image 373
Vorac Avatar asked May 22 '13 11:05

Vorac


People also ask

What is PIC support?

Parent Information Center (PIC), is a statewide parent center for families of children with disabilities. PIC provides information, support and referrals to families on their rights and responsibilities under the special education law - the Individuals with Disabilities Education Act (IDEA).

Which compiler is used for PIC controller?

Program the PIC Microcontroller Here 'CCS C compiler' is used for building the program. First open the MPLAB software.

Which compiler is used for PIC16F877A?

Getting Ready for Programming: Since we have decided to use the PIC16F877A, with the XC8 compiler let us get started with their datasheet.

What is PIC C compiler?

Description. This integrated C development environment gives developers the capability to quickly produce very efficient code from an easily maintainable high level language. The compiler includes built in functions to access the PIC hardware such as READ_ADC to read a value from the A/D converter.


1 Answers

I don't believe it's supported and none of the PIC families are mentioned on the Status of Supported Architectures page. Note that there is some support for the PIC32 series because that's based on a MIPS M4K core. A few zero-cost options that come to mind are:

  • Microchip have a free version of MPLAB XC8 available. You'll see at the bottom of that page that the difference between the free and the paid versions is the optimization level. I've used the free version and the code generated still seems pretty decent.

  • For open source there is the SDCC - Small Device C Compiler. That supports the PIC16 series and while I've never used personally it seems to be widely recommended.

like image 172
PeterJ Avatar answered Oct 02 '22 22:10

PeterJ