View Single Post
Old Mar 28th, 2008, 4:36 PM   #7
Seif
Hobbyist Programmer
 
Seif's Avatar
 
Join Date: Jan 2006
Location: UK
Posts: 214
Rep Power: 3 Seif is on a distinguished road
Re: Techniques For Overcoming Stack Overflow In DP

I believe its possible to set the applications stack size when using the gnu linker with -stack <size>.

other ideas would be,

1. Check you aren't losing stack space due to alignment.
2. Play with the optimization switches with your compiler. In some cases you can get the compiler to omit generating stack allocations wherever it can.
3. Use the heap. keep track of where your at and make your own stack.
Seif is offline   Reply With Quote