Size of binary
Rob Landley
rob at landley.net
Sat Sep 13 22:34:15 UTC 2008
On Wednesday 20 August 2008 09:35:07 Hinko Kocevar wrote:
> It certainly helped when all toolchain and uClibc static libraries were
> stripped too. Now the sizes are close to the old uClibc:
>
> -rwxr-xr-x 1 hinkok hinkok 2766 Aug 20 16:26 _hello_cris_new_uclibc_dyn_O0
> -rwxr-xr-x 1 hinkok hinkok 2766 Aug 20 16:26 _hello_cris_new_uclibc_dyn_O1
> -rwxr-xr-x 1 hinkok hinkok 2377 Aug 20 16:26 _hello_cris_new_uclibc_dyn_O2
> -rwxr-xr-x 1 hinkok hinkok 2377 Aug 20 16:26 _hello_cris_new_uclibc_dyn_O3
> -rwxr-xr-x 1 hinkok hinkok 2754 Aug 20 16:26 _hello_cris_new_uclibc_dyn_Os
> -rwxr-xr-x 1 hinkok hinkok 2196 Aug 20 16:26 _hello_cris_old_uclibc_dyn_O0
> -rwxr-xr-x 1 hinkok hinkok 2196 Aug 20 16:26 _hello_cris_old_uclibc_dyn_O1
> -rwxr-xr-x 1 hinkok hinkok 2164 Aug 20 16:26 _hello_cris_old_uclibc_dyn_O2
> -rwxr-xr-x 1 hinkok hinkok 2164 Aug 20 16:26 _hello_cris_old_uclibc_dyn_O3
> -rwxr-xr-x 1 hinkok hinkok 2164 Aug 20 16:26 _hello_cris_old_uclibc_dyn_Os
Still noticeably bloated.
Can you run "nm --size-sort" on the binaries? (You might have to do so on the
unstripped versions.) That's a good first step because it tells us _where_
the bloat is.
Also, make sure you have the various DEBUG config entries switched off in
the uClibc .config.
Rob
More information about the uClibc
mailing list