[Gambas-user] Stack Size Question

Benoit Minisini gambas at ...1...
Tue May 24 16:55:05 CEST 2005


On Tuesday 24 May 2005 10:21, PV wrote:
> On 24/05/2005 01:38, nando wrote:
> > Benoit,
> >
> > Thank you for your replies.
> > I will do my best for examples/source for problems.
> >
> > How deep is the Stack?
> > Can it be changed?
> > At runtime, can I find out how much is used?
>
> Well, Benoit will of course give you more detailed and appropriate
> explanations, but in the meanwhile I can tell you what I discovered about
> the stack.
>
> Since I had a deeply recursive function, I used up all the stack space so I
> went around to see how this could be changed.
>
> I found out something interesting in main/gbx/gbx_stack.c, namely the
> STACK_size variable which is by default 16K.
>
> I increased it and recompiled gambas, and didn't run out of stack space
> anymore.
>
> Hope it helps.
>
> Ciao,
> Piero
>

In the past, you was able to configure this value from the IDE. I removed 
that, with the aim of having a stack that can grow dynamically. But I never 
had the time to implement this feature, so the stack still has a fixed 
size :-(

I note that in the TODO list...

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the User mailing list