No exact or substring matches. trying for part
PICList
Thread
'[PICLIST] GNU GPL C compiler for PIC'
2001\10\08@113126
by
Roy Souther
2001\10\08@121147
by
Scott Dattalo
|
On Mon, 8 Oct 2001, Roy Souther wrote:
> Has anyone writen a free compiler for PIC that runs on Linux and is licensed
> under the GNU GPL? I have some students that want to make a project and then
> share the code and hex files after.
>
> I use the Hi-Tech compiler but I don't think the free version runs on Linux
> and I don't think you are allowed to share the hex file made from the free
> compiler.
>
> Solutions?
Roy,
I'm actively working on porting SDCC to the PIC midrange architecture. You
can checkout a brief history of my efforts:
http://www.dattalo.com/gnupic/sdcc.html
SDCC's homepage is here:
http://sdcc.sourceforge.net/
As I've told others, the rate at which I'm progressing I'll probably have
a beta quality compiler by March '02. Right now, you can grab what's in
CVS and experiment with variations of the code that is working. In the CVS
tree, I've created:
sdcc/src/regression/*.c
These contain numerous C files for testing new features as I add them. You
can see this on line at:
cvs.sourceforge.net/cgi-bin/viewcvs.cgi/sdcc/
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/sdcc/sdcc/src/regression/
Some of the major things working are:
addition, subtraction, <<, >>, ^, comparisons, for loops, case statements
Some of the things partially working:
Parameter passing to functions, returning parameters from functions,
structures, signed operations, pointers, code banking, register banking.
Some of things that don't work at all:
multiplication, division, %, 32-bit types, floating types
Some of the exotic stuff that works:
Post code optimization, call stack tracing, dynamic register allocation,
Some of the important stuff outside of the immediate scope of the C
compiler that doesn't work:
Object file support/linking, library generation (e.g. code for uarts or
I2C), Processor specific include files.
Scott
--
http://www.piclist.com hint: To leave the PICList
piclist-unsubscribe-request
KILLspammitvma.mit.edu
More... (looser matching)
- Last day of these posts
- In 2001
, 2002 only
- Today
- New search...