From: Andrew Lunn <andrew.lunn@ascom.ch>
To: Robin Farine <acnrf@dial.eunet.ch>
Cc: ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] ARM startup stack & C++
Date: Wed, 08 Aug 2001 08:32:00 -0000 [thread overview]
Message-ID: <20010808173203.C3798@biferten.ma.tech.ascom.ch> (raw)
In-Reply-To: <86ofpqshv0.fsf@halftrack.hq.acn-group.ch>
On Wed, Aug 08, 2001 at 05:15:31PM +0200, Robin Farine wrote:
> Hi gang,
>
> I have got some stack overflow during execution of non-trivial static
> initializers with C++ programs. The file vectors.S for ARM declares a startup
> stack of 512 bytes when configured for separate interrupt stack. What do you
> think I should do to get a big stack for initializers/finalizers?
>
> 1) Change the hardcoded 512 into 8192 ;-)
Not a good idea. The patch will get lost/forgotten when you hand the
completed code over the industrilisation team of intergration.
>
> 2) Add a configuration option for the startup stack size but nothing will use
> this "big" area afterwards, correct?
Sounds reasonable. Anyone with a non-trivial static initialiser
probably has enough MB of memory that 8K is will not be missed.
> 4) A completely different and wonderful solution?
Change your static to dynamic initialisationm so it can be done in the
context of a thread you can control the size of the stack.
Andrew
next prev parent reply other threads:[~2001-08-08 8:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-08 8:16 Robin Farine
2001-08-08 8:32 ` Andrew Lunn [this message]
2001-08-08 9:13 ` Jonathan Larmour
2001-08-09 0:07 ` Robin Farine
2001-08-09 0:17 ` Robin Farine
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=20010808173203.C3798@biferten.ma.tech.ascom.ch \
--to=andrew.lunn@ascom.ch \
--cc=acnrf@dial.eunet.ch \
--cc=ecos-discuss@sources.redhat.com \
/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).