This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: porting to Atmel-AT91, stub memory-layout, .bss does not fit
- To: Andreas Bürgel <ab at genologic dot de>
- Subject: Re: [ECOS] porting to Atmel-AT91, stub memory-layout, .bss does not fit
- From: Jesper Skov <jskov at redhat dot com>
- Date: 30 Oct 2000 16:53:52 +0100
- Cc: ecos-discuss at sources dot redhat dot com
- References: <39FD7BEB.DB54B689@genologic.de>
>>>>> "Andreas" == Andreas Bürgel <ab@genologic.de> writes:
Andreas> Who eats up the on-chip ram space? The stub isn't much more
Andreas> than a skeleton.
But it has various buffers for packet creation/decoding. It's a real
memory pig, actually (at least if you try to squeeze it into 8kB).
You should look at the nm output to see what buffers take up the
space, and reduce their size accordingly. Beware that you cannot make
them smaller than whichever is smaller of (a) 400 bytes or (b) the
number of bytes it takes to encode the register information (IIRC).
Also, the stub stack probably defaults to a couple of k.
I assume you have more RAM available?!? You cannot expect to be able
to debug anything in 8kB of RAM. Both stub and application need space.
Jesper