Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257
Sujet n° 1282
v6 how many Jump ?
le 08/11/2005 @ 20:06 par Khertan
Hi ...
How many jump ("GOSUB") can we make with the version 6 of iziBasic ... because i think i pass the limit ...
Salut ...
Combien de jump ("Gosub") peut on effectuer avec la version 6 de iziBasic ... car je crains avoir depassé la limite ...
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497 Réponse n° 1 -------- le 08/11/2005 @ 23:14 par aldweb
visiteur
Hello Khertan,
There are 2 ways to understand your question:
1. how many GOSUBs can be put in a source code?
You may code as may GOSUBs as you want, there is no limit in this area.
The limit is in the number of labels.
User manual page 17 of version 6.0 says that "You can put up to 255 labels and user defined variables in one source code". Understand : (labels + user defined variables) <= 255
2. how many overlapping GOSUBs can be executed in a row?
The Jump Stack is 256 items big. Other statements use it (FOR/NEXT, WHILE/WEND...), but it prooved to be far enough so far. I never succeeded to use more than 10% of its capacity with my software so far.
Cheers, aldweb
@+ aldweb
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497 Réponse n° 2 -------- le 09/11/2005 @ 00:04 par Khertan
visiteur
How my god ... i do it :)
Answer 2 :)
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497 Réponse n° 3 -------- le 09/11/2005 @ 00:11 par aldweb
visiteur
Didn't you get a Jump Stack Overflow error message at execution time? Did you build some kind of recursive routine? Because, really, 256 jumps stored in the stack is huge...
@+ aldweb
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497 Réponse n° 4 -------- le 09/11/2005 @ 00:25 par Khertan
visiteur
"Didn't you get a Jump Stack Overflow error message at execution time?" Yes i have one ... but too late of one gosub
"Did you build some kind of recursive routine?" Of course :)