[LLVMdev] n00b question: From module/bitcode to Mach-O dylib file directly?

John McCall rjmccall at apple.com
Sun Mar 15 16:09:39 PDT 2009


On Mar 15, 2009, at 3:20 PM, Luke Evans wrote:
> I'm on the Mac, and would like to have my code dynamically create and
> load new functions into a process.  I believe I can do this, but I'm
> not sure yet how 'direct' things will be in terms of both the tool
> chain, and how much I need to emit intermediate files.

Are you just loading functions into the current process?  There's no  
need
to create temporary object files and dynamically link them in;  LLVM is
perfectly capable of assembling a function in memory.  Look up the
docs for llvm::ExecutionEngine::create and go from there.

John.



More information about the llvm-dev mailing list