[Top][All Lists]

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

Re: [avr-gcc-list] regression in size from 4.2.2 to 4.5.0

From: David Kelly
Subject: Re: [avr-gcc-list] regression in size from 4.2.2 to 4.5.0
Date: Wed, 6 May 2009 14:30:20 -0500
User-agent: Mutt/

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, address@hidden
Whom computers would destroy, they must first drive mad.

reply via email to

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