This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Big kernel size increase with gcc 3.4
- From: Bernardo Innocenti <bernie at develer dot com>
- To: Aaron Lehmann <aaronl at vitelus dot com>
- Cc: gcc at gcc dot gnu dot org, linux-kernel at vger dot kernel dot org
- Date: Fri, 08 Aug 2003 16:00:43 +0200
- Subject: Re: Big kernel size increase with gcc 3.4
- Organization: Develer S.r.l.
- References: <3F330D46.8020508@develer.com> <20030808024909.GT2712@vitelus.com>
Aaron Lehmann wrote:
On Fri, Aug 08, 2003 at 04:39:02AM +0200, Bernardo Innocenti wrote:
- same optimization flags: -m5307 -O2 -fno-strict-aliasing
-fno-common -fno-builtin -fomit-frame-pointer
You should try -Os if you want to optimize for size.
I did some time ago, and it seems to reduce the code size greatly,
but then I noticed some problems with the memory allocator and
switched back to -O2 for fear that changing the inlining policy
could lead to instability.
I still see those memory allocator problems, so I think I could
safely switch back to -Os now... actually I would recommend it
for all embedded targets.
--
// Bernardo Innocenti - Develer S.r.l., R&D dept.
\X/ http://www.develer.com/
Please don't send Word attachments - http://www.gnu.org/philosophy/no-word-attachments.html