[LLVMdev] runtime library for jitted code
Victor Zverovich
victor.zverovich at googlemail.com
Mon Jun 15 02:35:27 PDT 2009
Dear All,
I am considering a possibility of using LLVM JIT for an algebraic modelling
language. I have already done some prototyping following the Kaleidoscope
tutorial and currently thinking of how to connect the jitted code to a
runtime library (for this language) which I would like to code in C++. If it
was *NIX I would use g++ possibly with '-rdynamic' option as suggested in
the tutorial to resolve required functions at runtime. However it is not an
option, I am stuck to Windows and Visual C++. One possibility that I have
found is to create llvm::Function objects and use
ExecutionEngine::addGlobalMapping to map them to the implementations. This
works fine but is quite labour-consuming since every library function
required used in jitted code needs to be mapped. Does anyone know a better
way?
Thanks,
Victor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090615/a82ac575/attachment.html>
More information about the llvm-dev
mailing list