public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Jonathan Larmour <jlarmour@redhat.com>
To: Suet Fei Li <suetfei@bwrc.eecs.berkeley.edu>
Cc: "'ecos-discuss@sourceware.cygnus.com'"
	<ecos-discuss@sourceware.cygnus.com>
Subject: Re: [ECOS] data mem size estimation
Date: Wed, 31 Jan 2001 23:20:00 -0000	[thread overview]
Message-ID: <3A790E30.42D6A508@redhat.com> (raw)
In-Reply-To: <711F6B80B5B4D211BA900090272AB7649DB52C@noyce.eecs.berkeley.edu>

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

      reply	other threads:[~2001-01-31 23:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-31 22:27 Suet Fei Li
2001-01-31 23:20 ` Jonathan Larmour [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3A790E30.42D6A508@redhat.com \
    --to=jlarmour@redhat.com \
    --cc=ecos-discuss@sourceware.cygnus.com \
    --cc=suetfei@bwrc.eecs.berkeley.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).