<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><div>Hi, all</div>
<div> </div>
<div>Could you give an ARM example project that can be compiled to ELF file by LLVM ?</div>
<div> </div>
<div>My command lines is as follows.</div>
<div> </div>
<div>clang -c d:\aa.c -emit-llvm -o aa.bc</div>
<div>llc aa.bc -march=arm -filetype=obj -o aa.elf</div>
<div> </div>
<div>the follow assert will be thrown </div>
<div>"ARM does not support Windows COFF format</div>
<div>Unreachable executed .....\ARMMCTargetDesc.cpp 250!"</div>
<div> </div>
<div>I am looking forward to your help.</div>
<div> </div>
<div>Thanks!</div>
<div> </div>
<div>Steven<br><br><br><br></div>
<div></div>
<div id="divNeteaseMailCard"></div>
<div><br></div><pre><br>At 2014-05-12 23:26:56,"Renato Golin" <renato.golin@linaro.org> wrote:
>On 12 May 2014 15:11, Tim Northover <t.p.northover@gmail.com> wrote:
>> It sounds like you're using the wrong triple. Even on Windows you
>> should be able to output ELF if you compile with (say) "clang -target
>> arm-none-eabi".
>
>Or not using a triple at all. Windows on ARM support is coming along,
>I bet it defaults to WoA and outputs COFF or whatever.
>
>cheers,
>--renato
</pre></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>