This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: problem with memory allcoation


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]