[LLVMdev] InitializeNativeTarget

Erick Tryzelaar idadesub at users.sourceforge.net
Wed Oct 7 16:21:38 PDT 2009


On Wed, Oct 7, 2009 at 11:36 AM, Albert Graef <Dr.Graef at t-online.de> wrote:
> Kenneth Uildriks wrote:
>
> Yes, so you'll need to add a little C++ module to your wrapper that does
> the necessary initializations and is callable from your target language.

That's odd, we don't need to do that for ocaml. Have you tried having
a function like this defined in your binding?

/* Force the LLVM interpreter and JIT to be linked in. */
void llvm_initialize(void) {
  LLVMLinkInInterpreter();
  LLVMLinkInJIT();
}

You don't have to call it, it's just there to make sure the execution
engine is actually linked with the binding library.



More information about the llvm-dev mailing list