Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
external functions in mcjit #193
I want to be able to use external functions (either defined in C or Haskell with foreign export) in mcjit. If it's already possible with these bindings, I haven't been able to figure it out.
If it is possible, I would pay to see example code.
If it isn't possible, I am interested in paying for development efforts to make it possible.
How tied are you to MCJIT? The ORC JIT API should generally be more powerful and flexible and I wouldn’t be surprised if LLVM itself drops the MCJIT API in the near future.sure if the A
I was planning to write up some example code for calling C functions in dynamic libraries from ORC JIT for some time, so I’ll try to get to this over the next few days. (I think it should be possible using the current API but I’ve never tried it).
For MCJIT I am honestly not sure if it’s possible and I would prefer to spend development efforts on ORC JIT.
Here are some examples if you're looking to use ORC JIT: