On Wed, May 06, 2009 at 12:44:42PM -0600, Sean D'Epagnier wrote:
> 
> I was trying to reduce the size of my binary so it would fit on some
> 128kb parts.  I normally used gcc 4.2.2 for this project, but decided
> to try gcc 4.5.0.  To my surprise, the resulting binary was 3.5kb
> _larger_ with the newer gcc.

I've been hanging around since something like 3.3.6 and rarely have I
seen a newer avr-gcc produce smaller code. It happens sometimes. Is more
important to generate correct code than to generate small code.

I remember when avr-gcc issued two returns at the end of most (not all)
routines. Pure waste. But the code ran correctly.

> This is a serious bug imho and should be fixed.

If its documented then its a feature, not a bug. Want smaller code? Try
one of the 3.x compilers.

-- 
David Kelly N4HHE, dke...@hiwaay.net
========================================================================
Whom computers would destroy, they must first drive mad.


_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to