[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Branch out of range errors
[Thread Prev] | [Thread Next]
- Subject: Re: Branch out of range errors
- From: Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
- Date: Thu, 28 Aug 2025 21:20:00 +0200
- To: user@xxxxxxxxxxxxxxxxxxxxxx
Le 28/08/2025 à 20:39, Brian G a écrit :
I have some performance test programs that I have fun with. They all implement the algorithms as close as possible in each language.One of them has about 14000 lines of code, mostly while loops.it compiles and runs with, Rust, Go, Asm86-64, C and Python but will not run with Gambas - always branch out of range error.Is there a patch to get this working, or switch. A little disconcerting that gambas is the only language that has branch out of range errors in the age of gigs of memory available.The exact error: # Gambas module file : MMain:13575:14: Jump is too far 13575*: wend ^ Jump is too far This while encompass the entire program. Is the a fixed value that can be documented as to size of a single module.
The Gambas bytecode cannot jump farther than 2^15 bytecode words, hence the error if your function is too long.
I don't really see the need to spend time implementing greater jumps, as real useful functions have no reason to be that big.
Regards, -- Benoît Minisini.
Branch out of range errors | Brian G <brian@xxxxxxxxxxxxxxxx> |