Question regarding management of JIT code
Dibyendu Majumdar
mobile@majumdar.org.uk
Thu Jan 1 00:00:00 GMT 2015
Hi Dave,
As I mentioned to you off list I am creating a JIT compiled version of
Lua called Ravi. Right now I am using LLVM but I would also like to
offer an alternative based on libgccjit.
Lua is a garbage collected language. The way I have implemented the
JIT compiler is that each Lua function gets compiled on its own, and
in LLVM parlance is put in its own Module. The Module in LLVM is
equivalent to a compilation unit in C. While one can put multiple
functions in a Module I do not do so because by creating separate
Modules for each function I can simply allow Lua's garbage collector
to to get rid of unused functions, releasing the Module and resources.
Is there a similar capability in libgccjit?
Thanks and Regards
Dibyendu
More information about the Jit
mailing list