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]

ARM startup stack & C++


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


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