[Gambas-user] New Just-in-time system (2)

Benoît Minisini g4mba5 at gmail.com
Sat Jun 9 22:53:51 CEST 2018


Le 08/06/2018 à 01:06, Jussi Lahtinen a écrit :
> OK
> 
> 
> Jussi
> 

It should now be in better shape and compilable.

Translation is now done at runtime.

Speed gain is about the same as the old JIT compiler (less in some 
benchmarks, a lot better in one), but many things are not optimized, and 
there are still many features to implement.

What works: the fast routines declared in the IDE, gb.form.terminal and 
gb.form.editor, as well as the benchmarks.

There is no speed gain in string processing (string processing is mainly 
allocation, copies, and comparisons). The 'string' benchmark is even 
slower when JIT compiled!

Set GB_NO_JIT=1 to disable the JIT compiler.

Set GB_JIT_DEBUG=1 to see what is done, and get a copy of generated C 
file in '/tmp/<component name>.c'. The project C file is '/tmp/gb.c'.

There is no compilation cache support at the moment.

Regards,

-- 
Benoît Minisini


More information about the User mailing list