Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257
Topic # 1282
v6 how many Jump ?
08/11/2005 @ 20:06 by 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 Answer n° 1 -------- 08/11/2005 @ 23:14 by aldweb
visitor
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 Answer n° 2 -------- 09/11/2005 @ 00:04 by Khertan
visitor
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 Answer n° 3 -------- 09/11/2005 @ 00:11 by aldweb
visitor
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 Answer n° 4 -------- 09/11/2005 @ 00:25 by Khertan
visitor
"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 :)
topic active
topic closed
Sticky
New message -
Correct message
Close topic
Make sticky