[LLVMdev] JIT, FFI

Christian S. Perone christian.perone.listas at gmail.com
Wed Oct 28 07:41:43 PDT 2009


Hello, I'm new to LLVM and I had a question about it: when we call the
JIT::runFunction, since llvm doesn't has a full FFI, there are some cases in
which the JIT needs to codegen a stub function to call the function we are
interested, my question is: this stub function will remains in the module
until when ? What are the most efficient way to remove it from the module
and memory ? For a little quantity of calls this doesn't matter, but when I
call a function using "runFunction" let's say 100 times with differente
arguments, it will create 100 function stubs.

Thank you !

-- 
Christian S. Perone
http://pyevolve.sourceforge.net/wordpress
"Forgive, O Lord, my little jokes on Thee, and I'll forgive Thy great big
joke on me."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091028/a726b787/attachment.html>


More information about the llvm-dev mailing list