[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GCC -- reducing compiled code size
From: |
Paul Pluzhnikov |
Subject: |
Re: GCC -- reducing compiled code size |
Date: |
Mon, 23 Jul 2007 17:07:13 -0700 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, linux) |
Ignoramus3627 <ignoramus3627@NOSPAM.3627.invalid> writes:
>> You can try to understand where that size comes from -- extract a
>> couple of .o files from the library, and examine what they are
>> comprized of (exact commands for this are system specific, and you
>> provided no clues what your platform might be).
>
> Linux, GCC 4.1.
In that case, use 'objdump -h' and 'readelf -S'.
The *.linkonce.* sections are the ones that will only be linked once
(i.e. repetitions will be eliminated).
Thomas Jensen <thomas.jensen.88@gmail.com> writes:
> You could try -Os (it tells GCC to optimize for size.)
That is unlikely to save more than 5% off the size of lib*.a
Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.