In the shell (ksh example) prior to executing your program you can use ulimit -s.
In the shell (ksh example) prior to executing your program you can use ulimit -s . You may need elevated privileges to change it. You can also use setrlimit programmatically but from the man page it won't adjust the currently running process so it's probably not helpful for your needs.
Also consider what about your program needs the larger stack size. Is there a way you can change your design to be more stack friendly? The Solaris default seems to be 10M which is a fairly large stack.
For example, move variable allocation to dynamic allocation using new. Most platforms have a lot more memory in the dynamic memory than for locals (i.e. Stack).
Also, check for recursive calls and function call depth. Passing many variables by structure rather than parameter list may save some stack space. – Thomas Matthews May 10 '10 at 18:32 On the other hand, stack allocation is faster than heap allocation so if you know you'll need lots of objects / calls and don't want to lose speed, stack allocation seems fair game.(ah, if only we had unlimited stack size like Go :x) – Matthieu M.
May 10 '10 at 18:55 On the third hand, if you're using tons of objects, they're probably fairly small and a simple small object allocator might be a good way around the stack limitations. – Mark B May 10 '10 at 19:47.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.