October 30, 2025, 10:38:57 AM

News:

IWBasic runs in Windows 11!


Stack size

Started by JoaoAfonso, March 03, 2008, 03:30:26 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JoaoAfonso

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
JoÃÆ'ƒÂÃ,£o Afonso
Viriato
-----------------
Iberia MUD
www.iberiamud.com
iberiamud.com:5900

Ionic Wind Support Team

These days, not much.   Every subroutine will have that much stack available to them.
Ionic Wind Support Team

JoaoAfonso

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 :)
JoÃÆ'ƒÂÃ,£o Afonso
Viriato
-----------------
Iberia MUD
www.iberiamud.com
iberiamud.com:5900

Ionic Wind Support Team

You should consider dynamic data, instead of statically defining everything on the stack.

Paul.
Ionic Wind Support Team