Size of binary

Hans-Christian Egtvedt hans-christian.egtvedt at atmel.com
Wed Aug 20 13:17:40 UTC 2008


On Wed, 20 Aug 2008 14:59:37 +0200
Hinko Kocevar <hinko.kocevar at cetrtapot.si> wrote:

<snipp executable size stuff with uClibc 0.9.27.

> 0.9.29
> ------
> $ /work/stage/buildroot/build_cris/staging_dir/usr/bin/cris-linux-uclibc-gcc
> hello.c -o _hello_cris_new_uclibc_dyn

What happens if you turn on size optimization? Tested with -Os, -O2,
-O3, etc? I think this might be due to compiler settings.

> $ ls -l
> _hello_cris_new_uclibc_dyn -rwxr-xr-x 1 hinkok hinkok    6104 Aug 20
> 14:52 _hello_cris_new_uclibc_dyn
> 

Just to compare with AVR32 + uClibc 0.9.29

 ~ > avr32-linux-gcc -O2 -Wall -o hello hello.c
 ~ > avr32-linux-strip hello
 ~ > ls -l hello
-rwxr-xr-x 1 hcegtvedt ssg 2064 2008-08-20 15:15 hello*

<snipp in depth size stuff with uClibc 0.9.29>

-- 
Best regards,
Hans-Christian Egtvedt



More information about the uClibc mailing list