Subject: Re: gcc 4.1.2 'regression'
To: Simon Burge <simonb@NetBSD.org>
From: David Laight <david@l8s.co.uk>
List: tech-toolchain
Date: 11/24/2006 20:51:30
On Fri, Nov 24, 2006 at 04:02:22PM +1100, Simon Burge wrote:
>
> At least for mips, gcc 4.1.2 builds smaller code than gcc 3.3.3, with a
> rough estimate of 10% smaller, and up to 15% in some cases. Here's a
> few examples built from the same source tree:
>
> text data bss dec hex filename
> 3320 156 52 3528 dc8 rhone.root-EL-gcc3/bin/sync
> 2841 164 52 3057 bf1 rhone.root-EL-gcc4/bin/sync
The change I saw was between two sub-versions of 4.1.2, and code
compiled with -Os. I suspect the -O2 is smaller (possibly just due
to changes in the code aligment rules!)
(Oh and I did mention 3.3.3...)
David
--
David Laight: david@l8s.co.uk