[ECOS] eCos kernel image size
Jonathan Larmour
jifl@eCosCentric.com
Tue Sep 2 03:02:00 GMT 2003
Gary Thomas wrote:
> On Wed, 2003-08-27 at 20:48, Satish Kumar wrote:
>
>>Hi,
>> i have this basic doubt i guess..i m interested in knowing
>>the eCos basic kernel image size..i only see a ecos library build
>>and when i try compiling the hello.c program with the above ecos
>>library using arm-elf-gcc..my hello.bin is something around 780 kb,
>>which is just too large..now this library contains default package.
>>
>> i m just interested in knowing only the eCos kernel image size
>>with out the C library..!! how to know this kernel size..?
>
>
> You're not looking at the size of the program, just the size of
> the ELF image! The ELF image contains *LOTS* of debug information
> which makes it appear quite large. In reality, the kernel itself
> is quite small. What you need to do is use the "size" utility to
> determine the actual memory requirements.
>
> For example, a "hello" application built with the default template:
> [gthomas@hermes t]$ ls -l hello
> -rwxr-xr-x 1 gthomas wheel 1643945 Aug 27 21:33 hello
> [gthomas@hermes t]$ powerpc-eabi-size hello
> text data bss dec hex filename
> 52940 0 16300 69240 10e78 hello
>
>>From this, you can see that the ELF file is 1.6MB, but the actual
> executable image is only 52KB of TEXT + 16KB of DATA.
And just to be clear: that's just the default configuration, which still
has plenty of bells and whistles that you wouldn't need (certainly not for
hello world :-)). And judicious use of the eCos Configuration Tool (or
editting of ecos.ecc) will make that footprint smaller. *Much* smaller.
Jifl
--
eCosCentric http://www.eCosCentric.com/ The eCos and RedBoot experts
--["No sense being pessimistic, it wouldn't work anyway"]-- Opinions==mine
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
More information about the Ecos-discuss
mailing list