IonicWind Software

IWBasic => General Questions => Topic started by: JoaoAfonso on March 03, 2008, 03:30:26 AM

Title: Stack size
Post by: JoaoAfonso on March 03, 2008, 03:30:26 AM
Ahoy.

In my program I have a subroutine that I keep increasing code as needed. I had lots of headaches before figured out it was about stack size: increasing this size, program run as expected.

My question is this: what are the inconvenients of having an huge stack size? I guess I have no other solution, though.

Thanks in advance
Title: Re: Stack size
Post by: Ionic Wind Support Team on March 03, 2008, 03:21:09 PM
These days, not much.   Every subroutine will have that much stack available to them.
Title: Re: Stack size
Post by: JoaoAfonso on March 03, 2008, 03:33:57 PM
Well, when I figure out the problem is stack size I increase it, but I always keep receiving a warning when compiling that I have 3 subroutines with big stack size. All goes ok as expected, though, after doing it. Was asking just thinkin in future :)
Title: Re: Stack size
Post by: Ionic Wind Support Team on March 03, 2008, 09:39:54 PM
You should consider dynamic data, instead of statically defining everything on the stack.

Paul.