memory footprint
Wulf Hofbauer
wh73 at cornell.edu
Tue Nov 26 17:15:45 UTC 2002
On Tue, Nov 26, 2002 at 10:45:26AM +1100, Chris Johns wrote:
> It does not seem too bad considering the hello world app would be using
> termios, the libc printf code, semaphore, region, plus a couple of other
> kernel managers. How-ever I suspect it could be made smaller.
Well, I get about the same codesize for a null application...
> You also need to insure you are linking the specific manager stubs to
> make sure unwanted mananger code is not linked in.
I was under the impression only those managers referenced in the
code get linked. So the RTEMS philosophy is "start big, cut out
what you don't need" instead of "start minimal, add only what you
need"? Or am I getting this wrong again?
> Out of interest what would seem right to you ?
For a "null" program that doesn't use the C library or the RTEMS
API, I think 32 kB would be acceptable, 16 kB would be
reasonable, 8 kB would be good, and 4 kB would be excellent.
Part of the problem is, on m68k, that there's a block of 9 kb of
uninitialized data space embedded in the code section. Still,
even without that, the executable looks too large to me.
Thanks,
Wulf
More information about the users
mailing list