This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Executable Size


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]