[LLVMdev] Machine Code, JIT, and Windows

Daniel Berlin dberlin at dberlin.org
Tue May 11 16:13:50 PDT 2010


On Tue, May 11, 2010 at 6:48 PM, Michael Smith
<Michael.Smith at synopsys.com> wrote:
> I’m writing an application that generates LLVM byte code and executes it at
> runtime. The options I’m looking at are to use the LLVM ExecutionEngine for
> JIT execution, or to write an assembly file, link it as a DLL using
> gcc/mingw, and load the DLL. It has to work on Linux and Windows.
>
>
>
> I’ve been testing it on Windows, and found that the JIT execution, and
> executing functions from a DLL are equally fast. Can anyone explain why?
> When I test JIT, I don’t have MinGW’s GCC in the path, so I wouldn’t expect
> it to be compiling to native code.

Why?
LLVM does not require an external application to compile to native code.
The JIT is in fact compiling to native code.
>
>
>
> Regards,
>
> Michael Smith
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>




More information about the llvm-dev mailing list