[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Urgent Queries about AVR-GCC

From: Keith Gudger
Subject: Re: [avr-gcc-list] Urgent Queries about AVR-GCC
Date: Tue, 3 Jun 2003 11:08:20 -0700 (PDT)

Just a comment on the IAR compiler...

My code is 16K bytes in GCC, 12K bytes in IAR.

I tracked down the reason, and it's the IAR optimization called
"cross-call optimization".  What's going on is the IAR compiler
agressively pulls together even the smallest chunks of repeated code, and
uses RCALLs to one copy of this code.  It really works (especially with
*big* source files)... 
I don't know how hard this would be to add, and I definitely don't know 
how to do it.  However, from my perspective it is "low-hanging fruit". (I
need those 4K bytes.)


On Tue, 3 Jun 2003, Larry Barello wrote:

> Last time I checked (about 1-1/2 years ago) IAR slightly edged out GCC in code
> generation, but when linked with libraries GCC still won.  None of the other 
> compilers I checked (ICC and CV) came even close.
> I guess you *can* have your cake and eat it for free... as long as you 
> program in
> "small" model, which is what GCC does.  Still, I agree the switch statement 
> could be
> cleaned up.
> Cheers!
> ----- Original Message -----
> From: "Neil Johnson" <address@hidden>
> ...
> >
> > Still, at the end of the day GCC is free, generates code which works, and
> > is free.  I don't think _anyone_ has the right to complain if the code is
> > not as good as commercial compilers.  As they say, "you gets what you pay
> > for".
> _______________________________________________
> avr-gcc-list mailing list
> address@hidden
> http://www.avr1.org/mailman/listinfo/avr-gcc-list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]