memory footprint
Aaron J. Grier
aaron at frye.com
Tue Nov 26 00:08:09 UTC 2002
On Mon, Nov 25, 2002 at 05:40:12PM -0500, Wulf Hofbauer wrote:
> I'm experimenting with RTEMS on an MVME147S (68030) board. I
> previously assumed that only those RTEMS components actually
> referenced get linked into the executable image of an application.
> However, a completely empty application still yields about 62 kb of
> text and 2.3 kB of initialized data. The "hello_world_c" example
> weighs in at a similar size.
>
> That kind of overhead just doesn't look right to me. What am I doing
> wrong here? I'm using the 20021118 snapshot, if that's relevant.
I suspect the majority of the overhead is from printf and libc. add
-Wl,-t to your final link so you can see what objects are being linked
in.
> I also noticed that RTEMS cannot run from ROM as storage for the
> exception vector table and interrupt stacks are allocated in the text
> (!) section. What is the rationale for this?
bsp_start() doesn't copy ROM vectors to RAM? (it does on 4.5.0)
--
Aaron J. Grier | Frye Electronics, Tigard, OR | aaron at frye.com
More information about the users
mailing list