[Gambas-user] Another new feature in /trunk

Benoît Minisini gambas at ...1...
Wed May 27 20:49:11 CEST 2009


Hi,

Now the interpreter stack grows automatically as needed (until it fills up 
your memory). So the stack size project option was removed from the IDE.

The initial stack size is 4K, and grows by 4K increment.

A local variable, a function argument or a WITH instruction uses 16 bytes, and 
a function call uses 48 bytes. 

A call between a Gambas function and a native function, or the contrary, uses 
48 bytes more.

On a 64 bits CPU, you must double all the previous values: the initial stack 
size and the increment is 8K, and so on...

Now you can guess how much stack your program uses.

Regards,

-- 
Benoît




More information about the User mailing list