On 25 Sep 2001, at 17:01, Jerome Grimbert wrote: > Because, smart Tony perform on-the-fly compilation of SB program, or rather > the tokenisation of the program has already been done at load/edit time, > So, it's just like the SB is already compiled. (no need to check the syntax > all the time). > > On PC, interpreted code is tokenised for each execution of a loop; > whereas on SMS, it is tokenised the first time you enter the code, and > after that, the result is reused. Actually, all Sbasic programs, even SuperBasic on the QL are Tokenised when loaded. Qsave/Qload saves the file in Tokenised form, so it is faster at saving loading, because the Tokenisation doesn't have to be done.
What Tony has done in Sbasic is to (semi) compile the program as soon as it is in memory. Hence, very little actual interpretation needs to be done when running it, which makes it pretty fast! Thus, the only advantage by compiling it with Qliberator, is that you dion't have the source code in memory - hence a smaller meotu occupation. I presume (but have never tested) that a program compiled under Turbo might still be a little faster - Turbo always produced faster (but less copatible) code than Qlib... Wolfgang ----------------- www.wlenerz.com