<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Tunga;
panose-1:2 11 5 2 4 2 4 2 2 3;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.im
{mso-style-name:im;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Thanks Reid, using -mtriple=i686-pc-windows-msvc-elf helped.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">I verified that the same failure repros on Windows when using MCJit, and that the patch fixes it.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Swaroop.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Reid Kleckner [mailto:rnk@google.com]
<br>
<b>Sent:</b> Sunday, October 26, 2014 4:18 PM<br>
<b>To:</b> Swaroop Sridhar<br>
<b>Cc:</b> bigcheesegs@gmail.com; anton@korobeynikov.info; llvm-commits@cs.uiuc.edu<br>
<b>Subject:</b> Re: [PATCH] Fix for Bug 5053<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">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.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Fri, Oct 24, 2014 at 4:30 PM, Swaroop Sridhar <<a href="mailto:Swaroop.Sridhar@microsoft.com" target="_blank">Swaroop.Sridhar@microsoft.com</a>> wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal" style="margin-bottom:12.0pt">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>
<br>
<span class="im">-----Original Message-----</span><br>
<span class="im">From: Lang Hames [mailto:<a href="mailto:lhames@gmail.com">lhames@gmail.com</a>]</span><br>
<span class="im">Sent: Monday, October 13, 2014 7:34 PM</span><br>
<span class="im">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></span><br>
<span class="im">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></span><br>
<span class="im">Subject: Re: [PATCH] Fix for Bug 5053</span><o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">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>
<o:p></o:p></p>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>