Maker Pro
Maker Pro

Any free C compiler for PIC?

E

Eric in somewhere

Jan 1, 1970
0
Any free C compiler for PIC?

Dear All,

I'm going to start a project using MicroChip PIC16F676. Is it any free C
compiler for it?
thx.

Eric
 
A

Andrew

Jan 1, 1970
0
Eric said:
Any free C compiler for PIC?

Dear All,

I'm going to start a project using MicroChip PIC16F676. Is it any
free C compiler for it?
thx.

Eric

http://www.bknd.com/cc5x/index.shtml - CC5X
http://www.htsoft.com/products/piclite/index.html - Picclite

I have used CC5X quite a lot for teaching purposes for the PIC16F877. It is
limited to 1K code and has dubious ability when it comes to compiling
complex expressions etc.

I intend switching to PICCLITE which has a 2K code limit, and better C
support (i.e. it doesn't fall over with more complex arithmetic expressions,
allows for initialisation of Static variables, simpler support for
interrupts).

However, in support of CC5X it appears to produce more compact code. This
is partly, I think, because it forces the user to think more about various
issues (eg what registers to save during an interrupt) which is also a
disadvantage.
 
M

Michel Catudal

Jan 1, 1970
0
Eric said:
Any free C compiler for PIC?

Dear All,

I'm going to start a project using MicroChip PIC16F676. Is it any free C
compiler for it?
thx.

Eric

SDCC, work in progress

It works on Linux. Since my PC isn't infected by windows I wouldn't know
if it would compile on windows, it probably would, you have to check for
yourself.
 
M

M.R.Van Luyn.

Jan 1, 1970
0
Eric in somewhere said:
Any free C compiler for PIC?

I used SDCC for a project recently. Expect pain and a lot of time probing
for workaround solutions for the crappy compiler.
Its okay for a few quick lines of code, but anything more than that is
pushing it. Don't expect any help from their newsgroup either.

Regards,
Murray
_____________________________________
Murray R.Van Luyn
E-mail: [email protected]
[email protected]
 
M

Michel Catudal

Jan 1, 1970
0
M.R.Van Luyn. said:
I used SDCC for a project recently. Expect pain and a lot of time probing
for workaround solutions for the crappy compiler.
Its okay for a few quick lines of code, but anything more than that is
pushing it. Don't expect any help from their newsgroup either.

Moron! The PIC compiler of SDCC is in it's infancy. If you don't like
it join the group to fix it or spend some money and buy a commercial one.

SDCC is excellent for the 80C51 and Z80 as well as my Z180 version. This
compiler was not written with the PIC in mind. It is quite a challenge to
make a decent PIC C Compiler so get a life!
 
A

Alex Gibson

Jan 1, 1970
0
M.R.Van Luyn. said:
I used SDCC for a project recently. Expect pain and a lot of time probing
for workaround solutions for the crappy compiler.
Its okay for a few quick lines of code, but anything more than that is
pushing it. Don't expect any help from their newsgroup either.

You usually get plenty of help on the mail list.
But it is in alpha / very early beta so what do you expect.

If you don't mind a limited compiler (2k limit)
for just 16F877, 16F877A, 12F675, 12F629, 16F627, 16C84, 16F84 and 16F84A
devices.
try the limited demo of the hittech compiler
http://www.htsoft.com/products/piclite/index.html
both linux and windows versions.

Also don't forget all pic compilers do academic versions.
Also you may be able to get the microchip compilers free
its worth talking with the Australian rep.

Should give www.picant.com (was c2c) a go.
Cheapest of the pic c compilers, works quite well
only support for the 12 and 16 series pics with 18xxx coming next year.

Alex
 
Top