Hi Raphael,

Thanks a million for the answer, and while I'm at it, thanks for your work
on the PIC port. We're using it over at midibox.org and loving it. 

I found a mention of that switch in the manual in the compliance section and
gave it a shot. I had to replace "code" with "__code" in my headers, but it
still choked on the inline keyword... But I must have specified that switch
incorrectly last time, because when I tried again just now, it worked!
Thanks!

I see what you mean about the directives now, but I guess it's only a few
extra lines, and I can dice them out manually when I do a final release, or
run out of codespace, whichever comes first ;) Wish I could help to work on
that, but I know nothing of compilers, so I'll just cheer from the
sidelines.

Thanks again!
stryd_one


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Raphael Neider
Sent: Wednesday, 9 July 2008 4:53 PM
To: sdcc-user@lists.sourceforge.net
Subject: Re: [Sdcc-user] Inline functions

Hi,

> Apologies, it just occurred to me that I neglected to mention the switches
> I'm using:
> 
> sdcc --asm=<path to GPASM> -c -mpic16 -p18f4620 --fommit-frame-pointer
> --optimize-goto --optimize-cmp --disable-warning 85 --obanksel=2  -I<bunch
> of include paths and defines> clk.c -o _output/clk.o

You'll need to add --std-c99 to the command line to make SDCC accept the 
inline keyword. However, the pic targets currently emit erroneous
global _f1
directives even when the function body is always inlined and no longer 
defined as _f1. Workaround: none, except for manipulating the .asm file...

HTH,
Raphael


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to