From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonathan Larmour To: Suet Fei Li Cc: "'ecos-discuss@sourceware.cygnus.com'" Subject: Re: [ECOS] data mem size estimation Date: Wed, 31 Jan 2001 23:20:00 -0000 Message-id: <3A790E30.42D6A508@redhat.com> References: <711F6B80B5B4D211BA900090272AB7649DB52C@noyce.eecs.berkeley.edu> X-SW-Source: 2001-01/msg00526.html 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 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