This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
ARM startup stack & C++
- To: ecos-discuss at sources dot redhat dot com
- Subject: [ECOS] ARM startup stack & C++
- From: Robin Farine <acnrf at dial dot eunet dot ch>
- Date: 08 Aug 2001 17:15:31 +0200
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 ;-)
2) Add a configuration option for the startup stack size but nothing will use
this "big" area afterwards, correct?
3) Disable the separate interrupt stack but this probably has annoying
implications.
4) A completely different and wonderful solution?
Number 2 seems not too bad to me, what's your opinion?
Robin