<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
Hi LLVMdev,</div>
<div style="color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
Does the latest trunk code support Windows Phone 8.1 target ? </div>
<div style="color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<br>
</div>
<div><font face="Calibri,sans-serif" style="color: rgb(0, 0, 0); font-size: 14px;">I was trying out a simple program, but Visual Studio 2013’s linker failed for me with this error - </font><font face="Courier">app.obj : error LNK2008: Fixup target is not aligned ‘add3'</font></div>
<div style="color: rgb(0, 0, 0); font-size: 14px;"><font face="Courier"><br>
</font></div>
<div>This is what I tried - </div>
<ul>
<li>Download latest LLVM sources (as on 4th June) and build them on my MAC 10.9 machine.</li><li>Wrote a simple a.c, with add3 function- </li></ul>
<div><font face="Courier">int add3(int i, int j)</font></div>
<div><font face="Courier">{</font></div>
<div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre"></span>int k = i+j;</font></div>
<div><font face="Courier"><span class="Apple-tab-span" style="white-space:pre"></span>return k;</font></div>
<div><font face="Courier">}</font></div>
<div>
<ul>
<li>Create LLVM IR using Xcode 5.1’s clang (<font face="Courier"><b>clang –S -O0 -emit–llvm a.c</b></font>)</li><li>Create obj file – using llc - <b>.<font face="Courier">/i686-apple-darwin11-llc -filetype=obj -mtriple=thumbv7-windows-msvc -O0 a.s</font></b></li><li>Now on a Windows 8.1 Desktop machine, link this object file into sample (new DirectX app, windows phone) Visual Studio 2013 project.</li><li>Declare and Call add3 in the sample windows project.</li><li>I then get a linker error on building the solution.</li></ul>
<div><font face="Courier"><b>1>app.obj : error LNK2008: Fixup target is not aligned 'add3'</b></font></div>
<div><font face="Courier"><b>1>LINK : fatal error LNK1165: link failed because of fixup errors</b></font></div>
<div><font face="Courier"><b>========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========</b></font></div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Could someone please confirm about the state of support for Windows Phone 8.1 ? Or am I missing something here?</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Daman</div>
</body>
</html>