This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: Executable Size
- To: <ecos-discuss at sources dot redhat dot com>
- Subject: RE: [ECOS] Executable Size
- From: "Dan Conti" <danc at iobjects dot com>
- Date: Thu, 31 May 2001 11:12:50 -0700
> -----Original Message-----
> From: Carlos Camargo [mailto:carlos_ivan_camargo@yahoo.com]
[snip]
> arm-elf-gcc -mcpu=arm7di -c -o twothreads.o -static
> -Wall -I/root/ecos-work/install/include
> -ffunction-sections -fdata-sections twothreads.c
> arm-elf-gcc -mcpu=arm7di -nostartfiles
> -L/root/ecos-work/install/lib -Wl,--gc-sections -o
> twothreads twothreads.o -Ttarget.ld -nostdlib
>
>
> text data bss dec hex filename
> 45880 1956 23544 71380 116d4 twothreads
>
> But, i don`t understand this information, when i use
> man size donīt provide information about this format
It's giving you the size in bytes of each of the sections (sort of).
text is the size of the code, so 45k code. data is, i believe, both the
.data section and the .rodata section (which are preinitialized data,
the latter being const). bss is zero initialized data. the next value,
dec, is the total size in decimal, and the following one, hex, is the
total size in hex.
It's quite easy to get very small images with eCos. I've packed a lot
into a 160k image. :)
-Dan
>
> Thanks Carlos Camargo
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail - only $35
> a year! http://personal.mail.yahoo.com/
>