* [ECOS] data mem size estimation
@ 2001-01-31 22:27 Suet Fei Li
2001-01-31 23:20 ` Jonathan Larmour
0 siblings, 1 reply; 2+ messages in thread
From: Suet Fei Li @ 2001-01-31 22:27 UTC (permalink / raw)
To: 'ecos-discuss@sourceware.cygnus.com'
Hi everyone, is there a good way to estimate the data memory requirement for
the OS? I need to know how much memory we need. Also any hints on how to
estimate data memory requirement in general (application +OS) ? I have no
experience in this at all.
thanx a lot.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ECOS] data mem size estimation
2001-01-31 22:27 [ECOS] data mem size estimation Suet Fei Li
@ 2001-01-31 23:20 ` Jonathan Larmour
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Larmour @ 2001-01-31 23:20 UTC (permalink / raw)
To: Suet Fei Li; +Cc: 'ecos-discuss@sourceware.cygnus.com'
Suet Fei Li wrote:
>
> Hi everyone, is there a good way to estimate the data memory requirement for
> the OS? I need to know how much memory we need. Also any hints on how to
> estimate data memory requirement in general (application +OS) ? I have no
> experience in this at all.
If you aren't using dynamic memory allocation at all, the answer is easy:
arm-elf-size <executable>
Of course you may still want to reduce your statically defined stack sizes.
You can use the recently added stack usage measurement functions to
influence your choice - cyg_thread_measure_stack_usage() in the kernel C
API, or pthread_measure_stack_usage() in pthreads. The obvious caveats
apply that the measurements returned are not necessarily the worst case for
the code in question - that's a judgement call up to you.
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-01-31 23:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-31 22:27 [ECOS] data mem size estimation Suet Fei Li
2001-01-31 23:20 ` Jonathan Larmour
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).