Hi,<br><br>You're asking lli to create a JIT for ARM code on an Intel platform... That's not realistically going to be achievable :)<br><br>Cross compilation is easy, cross execution requires an emulator. <br><br>Cheers,<br><br>James<br><div class="gmail_quote"><div dir="ltr">On Mon, 27 Jul 2015 at 23:13, Débora Setton Fernandes <<a href="mailto:debora.setton@usp.br">debora.setton@usp.br</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Is it normal/expected for `llc` to support a different set of targets<br>
than `lli`?<br>
I have a hello.ll on which this works:<br>
<br>
$ llc -mtriple=armv7a-linux-gnueabihf hello.ll<br>
# OK, generates hello.s<br>
<br>
But this doesn't:<br>
<br>
$ lli -mtriple=armv7a-linux-gnueabihf hello.ll<br>
# lli: error creating EE: No available targets are compatible with<br>
this triple, see -version for the available targets.<br>
<br>
I'm using LLVM from the git mirror:<br>
<br>
$ lli -version<br>
LLVM (<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=Mfk2qtn1LTDThVkh6-oGglNfMADXfJdty4_bhmuhMHA&m=FUKmCLVPKK_2JSvRZRQnVP9X0ToLcdeGb8Cr2YqBXQU&s=5u5kbofFz9aIExXyowm3q2lKp41l_3xEauv8cecQDDU&e=" rel="noreferrer" target="_blank">http://llvm.org/</a>):<br>
LLVM version 3.7.0svn<br>
Optimized build.<br>
Built Jun 19 2015 (17:35:44).<br>
Default target: x86_64-unknown-linux-gnu<br>
Host CPU: broadwell<br>
<br>
I thought they would both support the same targets... Why isn't that the case?<br>
<br>
Thanks,<br>
<br>
Débora.<br>
<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a> <a href="http://llvm.cs.uiuc.edu" rel="noreferrer" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" rel="noreferrer" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</blockquote></div>