On Fri, Jun 22, 2001 at 12:17:43AM +0200, Yann Dirson wrote:
> Hi all,
Hello,
>
> I wanted to checked what "gcc -Os" could do to help us in our Holy
> Cruisade for Disk Space. Here are my results for i386:
>
> e2fsprogs-1.21+1.22-WIP-0620/debian[682]$ du -sb e2fsprogs-bf-*
> 364544 e2fsprogs-bf-O2
> 356352 e2fsprogs-bf-Os
> e2fsprogs-1.21+1.22-WIP-0620/debian[683]$ find e2fsprogs-bf-O2 -type f | xargs cat |
>wc -c
> 499620
> e2fsprogs-1.21+1.22-WIP-0620/debian[684]$ find e2fsprogs-bf-Os -type f | xargs cat |
>wc -c
> 496904
>
> /me still wonders in which files there are holes, that could account
> for the fact that the raw files are larger than the space that they,
> their symlinks, and their dir tree take on my 4k-blocks filesystem,
> but clearly there are a couple of KBs to take here.
You can also strip out the unneeded sections of the ELF format (namely
.note, .comment, .note.ABI-tag, perhaps others depending on what has been
put in the ELF file). Passing -fno-inline could save some other space.
Cheers,
--
Thierry LARONDE, Centre de Ressources Informatiques, Archamps - France
http://www.cri74.org/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]