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: Huge memory footprint for a simple "hello world"


~/work/atmel$ arm-elf-size test
  text    data     bss     dec     hex filename
 55855     968   25680   82503   14247 test

I noticed -r was the raw "mode" and just did not know any better.

And one more thing, since I did not edit/change the target.ld (created
by ecosconfig), I suppose will need to change it as well?

I am much appreciating your help Andrew.

Thanks.

On 6/6/06, Andrew Lunn <andrew@lunn.ch> wrote:
On Tue, Jun 06, 2006 at 03:57:26PM +0200, Socrates Socrates wrote:
> Thanks Andrew,
>
> Certainly I am new to embedded systems indeed.  I now run:
> /arm-elf-ld -nostartfiles  -nodefaultlibs  -nostdlib -s  -static
> -L/opt/ecos/gnutools/arm-elf/arm-elf/lib
> -L/opt/ecos/gnutools/arm-elf/lib/gcc-lib/arm-elf/3.2.1/ -o test test.o
> -Ttarget.ld
>
> So the size is now down to (~91k):
> -rwxr-xr-x  1 socrates socrates 91364 Jun  6 14:07 test
>
> which I think is still big in my opinion.

and what does arm-elf-size say?

> -b option: The upload always fails until I use the -r option which
> forces me to use the -b option.

> How do I go about getting a succesful upload without using the -r and
> hence -b option?

If you upload the elf file you don't want -r otherwise the raw elf
file will be loaded as is. Redboot knows how to process an elf to
extract the executable code and data.

Andrew


-- 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]