This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: problem with memory allcoation
- From: Andrew Lunn <andrew dot lunn at ascom dot ch>
- To: Mayank Sharma <mayanks at mindtree dot com>
- Cc: eCos Disuss <ecos-discuss at sources dot redhat dot com>
- Date: Tue, 6 Aug 2002 12:46:13 +0200
- Subject: Re: [ECOS] problem with memory allcoation
- References: <E125980C421DFD4DA0B80D55DB1EDA580455AD@mtv01ex01.mindtree.com>
On Tue, Aug 06, 2002 at 04:07:15PM +0530, Mayank Sharma wrote:
> Thanx a lot Andrew, it's working. the memory allocated to the function stack
> was 1K , i thought that much should be enough now i made 4K ( and also
> increased the pool size) and it is working.
> But i was not calling any function in subsequent instructions not even
> printf's and from the current stack size i could see that i was not using the
> whole of 1K so i thought that should'nt be the problem, but after you pointed
> it out i increased the size and it worked.
>
> Thanx again Andrew, and thanx to others as well who responded.
There are a couple of HAL macros you will find useful.
CYGNUM_HAL_STACK_SIZE_MINIMUM
CYGNUM_HAL_STACK_SIZE_TYPICAL
There value depend on your platform.
Also, if you enable assertion checking in the infra package, eCos will
check this when you call cyg_thread_create().
Andrew
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss