This is the mail archive of the ecos-discuss@sourceware.org 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]
Other format: [Raw text]

Re: Memory footprint


Andrew Lunn a écrit :
On Wed, May 10, 2006 at 11:08:49AM +0200, Emmanuel Viollet wrote:
Hi.

I can't find any information on this on the internet, so perhaps you can help me out...

I need to compile a kernel with PPP. Do you have any idea of the footprint of eCOS with lwIP and PPP?
I compiled a minimal program with PPP for my Olimex LPC2106 evaluation board, and it takes 560Kb.
Does this size seem normal?

Is that the size of the elf or the size of the binary which is
actually loaded onto the target?


what does arm-elf-size say?

$ arm-elf-size.exe a.out text data bss dec hex filename 41920 1512 8028 51460 c904 a.out

I suppose that this means the binary will be 51460Kb in size?

I am using a Phlips 2106 processor with 128Kb EEPROM and 64Kb RAM.
Do you think I can fit in LwIP + PPP + Zlib in this?

The linker is giving me errors :
$ arm-elf-gcc -I../../ecos_install/include hello.c -L../../ecos_install/lib -Ttarget.ld -nostdlib
/usr/lib/gcc-lib/arm-elf/3.4.0/../../../../arm-elf/bin/ld: l'adresse 0x2624c de a.out de la section .text n'est pas dans la région rom
/usr/lib/gcc-lib/arm-elf/3.4.0/../../../../arm-elf/bin/ld: l'adresse 0x2624c de a.out de la section .fini n'est pas dans la région rom
/usr/lib/gcc-lib/arm-elf/3.4.0/../../../../arm-elf/bin/ld: l'adresse 0x2aff1 de a.out de la section .rodata n'est pas dans la région
rom
/usr/lib/gcc-lib/arm-elf/3.4.0/../../../../arm-elf/bin/ld: l'adresse 0x2aff4 de a.out de la section .rodata1 n'est pas dans la région rom
/usr/lib/gcc-lib/arm-elf/3.4.0/../../../../arm-elf/bin/ld: l'adresse 0x2aff4 de a.out de la section .fixup n'est pas dans la région rom
/usr/lib/gcc-lib/arm-elf/3.4.0/../../../../arm-elf/bin/ld: l'adresse 0x2aff4 de a.out de la section .gcc_except_table n'est pas dans la région rom
/usr/lib/gcc-lib/arm-elf/3.4.0/../../../../arm-elf/bin/ld: l'adresse 0x4001ca20 de a.out de la section .bss n'est pas dans la région ram


I'm sorry, but the error messages are in french.
From what I gather, the code is too big for RAM and ROM?
"the address 0x2624c from a.out in section .text is not in the rom region"?

--
Emmanuel Viollet
Software engineer
Webdyn
e-mail : Emmanuel.Viollet@webdyn.com
Tel    : +33 (0)1 39 04 29 55

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


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