<div dir="ltr">It is supported, but in a very roundabout way, unfortunately. You have to use a target triple like: i686-pc-windows-msvc-elf or something ridiculous like that. Try adding '-mtriple=i686-pc-windows-msvc-elf'. MCJIT has a lot of loader-like functionality, but it's only implemented for MachO and ELF, not COFF, so you have to emit and "load" ELF files in memory to use MCJIT on Windows.</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 24, 2014 at 4:30 PM, Swaroop Sridhar <span dir="ltr"><<a href="mailto:Swaroop.Sridhar@microsoft.com" target="_blank">Swaroop.Sridhar@microsoft.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Lang,<br>
<br>
Is the MCJit supported on Windows?<br>
<br>
I tried the following using lli MCJIT (on the development branch of LLVM), but LLI failed with the following error:<br>
<br>
Debug\bin\lli.exe  llvm\test\ExecutionEngine\hello.ll<br>
LLVM ERROR: Incompatible object format!<br>
Stack dump:<br>
0.      Program arguments: Debug\bin\lli.exe D:\enlist\JIT\llvm\test\ExecutionEngine\hello.ll<br>
<br>
<br>
Thanks,<br>
Swaroop.<br>
<span class="im HOEnZb"><br>
-----Original Message-----<br>
From: Lang Hames [mailto:<a href="mailto:lhames@gmail.com">lhames@gmail.com</a>]<br>
Sent: Monday, October 13, 2014 7:34 PM<br>
To: Swaroop Sridhar; <a href="mailto:bigcheesegs@gmail.com">bigcheesegs@gmail.com</a>; <a href="mailto:anton@korobeynikov.info">anton@korobeynikov.info</a>; <a href="mailto:rnk@google.com">rnk@google.com</a><br>
Cc: <a href="mailto:lhames@gmail.com">lhames@gmail.com</a>; <a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
Subject: Re: [PATCH] Fix for Bug 5053<br>
<br>
</span><div class="HOEnZb"><div class="h5">Hi Swaroop,<br>
<br>
Copied from the bug report:<br>
<br>
The old JIT is deprecated in 3.5, and has been removed entirely on the development branch of LLVM. Could you try this with MCJIT and see if your problem reproduces there?<br>
<br>
Just run 'lli -use-mcjit testcase.ll' on 3.5, or simply 'lli testcase.ll' on the development branch where MCJIT is the default.<br>
<br>
Cheers,<br>
Lang.<br>
<br>
<a href="http://reviews.llvm.org/D5387" target="_blank">http://reviews.llvm.org/D5387</a><br>
<br>
<br>
</div></div></blockquote></div><br></div>