Big kernel size increase with gcc 3.4
Bernardo Innocenti
bernie@develer.com
Fri Aug 8 17:15:00 GMT 2003
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
More information about the Gcc
mailing list