This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Big kernel size increase with gcc 3.4


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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]