This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Executable Size
- To: Jonathan Larmour <jlarmour at redhat dot com>
- Subject: Re: [ECOS] Executable Size
- From: Carlos Camargo <carlos_ivan_camargo at yahoo dot com>
- Date: Thu, 31 May 2001 10:45:41 -0700 (PDT)
- Cc: "'ecos-discuss at sources dot redhat dot com'" <ecos-discuss at sources dot redhat dot com>
Hi..
Jonathan thanks for your answer..
When i compile the twothreads example:
arm-elf-gcc -mcpu=arm7di -c -o twothreads.o -g -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
and i execute arm-elf-size twothreads:
text data bss dec hex filename
45880 1956 23544 71380 116d4 twothreads
When i Buils whitout "-g" option
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
Thanks Carlos Camargo
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/