From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Dan Conti" To: Subject: RE: [ECOS] Executable Size Date: Thu, 31 May 2001 11:12:00 -0000 Message-id: X-SW-Source: 2001-05/msg00570.html > -----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/ >