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

Benoît Minisini g4mba5 at gmail.com
Sun Jun 10 22:04:52 CEST 2018


Le 10/06/2018 à 21:47, Jussi Lahtinen a écrit :
> OK, the generated C code is readable, but definitely not easy to read!
> You really need to know a lot to be able to contribute to the JIT

It's a lot of macros defined in the 'jit.h' and 'gambas.h' file located 
in gb.jit, and directly put at the start of the C file.

Of course you have to know how the interpreter works to understand the code.

The C compiler is used there as a sophisticated assembler. It's not 
really C.

> 
> I tried it with my big project, but no luck. Obviously still work in 
> progress.
> 
> 
> Jussi
> 

You must use GB_JIT_DEBUG=1 and run your project from the command-line. 
That way, you will know if there is a unimplemented bytecode or a crash 
(i.e. bad C code).

Regards,

-- 
Benoît Minisini


More information about the User mailing list