This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: Macro that ensures minimum stack size
- From: "David Marqvar (DAM)" <DAM at tt dot dk>
- To: 'Nick Garnett' <nickg at ecoscentric dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Thu, 1 May 2003 19:31:30 +0200
- Subject: RE: [ECOS] Macro that ensures minimum stack size
From: Nick Garnett [mailto:nickg@ecoscentric.com]
> Personally I just define stack sizes as follows:
>
> #define STACK_SIZE (CYGNUM_HAL_STACK_SIZE_MINIMUM+<app usage>)
>
> The amount of stack needed for an application is usually fairly
> independent of the exact architecture. To me this seems a safer
> approach than yours, since it guarantees that the app stack space is
> always present.
I see your point and agree. Will use it :-)
/David Marqvar
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss