Débora Setton Fernandes
2015-Jul-23 16:46 UTC
[LLVMdev] lli supports different targets than llc?
Hi, Is it normal/expected for `llc` to support a different set of targets than `lli`? I have a hello.ll on which this works: $ llc -mtriple=armv7a-linux-gnueabihf hello.ll # OK, generates hello.s But this doesn't: $ lli -mtriple=armv7a-linux-gnueabihf hello.ll # lli: error creating EE: No available targets are compatible with this triple, see -version for the available targets. I'm using LLVM from the git mirror: $ lli -version LLVM (http://llvm.org/): LLVM version 3.7.0svn Optimized build. Built Jun 19 2015 (17:35:44). Default target: x86_64-unknown-linux-gnu Host CPU: broadwell I thought they would both support the same targets... Why isn't that the case? Thanks, Débora.
Hi, You're asking lli to create a JIT for ARM code on an Intel platform... That's not realistically going to be achievable :) Cross compilation is easy, cross execution requires an emulator. Cheers, James On Mon, 27 Jul 2015 at 23:13, Débora Setton Fernandes <debora.setton at usp.br> wrote:> Hi, > > Is it normal/expected for `llc` to support a different set of targets > than `lli`? > I have a hello.ll on which this works: > > $ llc -mtriple=armv7a-linux-gnueabihf hello.ll > # OK, generates hello.s > > But this doesn't: > > $ lli -mtriple=armv7a-linux-gnueabihf hello.ll > # lli: error creating EE: No available targets are compatible with > this triple, see -version for the available targets. > > I'm using LLVM from the git mirror: > > $ lli -version > LLVM (http://llvm.org/): > LLVM version 3.7.0svn > Optimized build. > Built Jun 19 2015 (17:35:44). > Default target: x86_64-unknown-linux-gnu > Host CPU: broadwell > > I thought they would both support the same targets... Why isn't that the > case? > > Thanks, > > Débora. > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150728/531b42e0/attachment.html>
On 28 July 2015 at 07:15, James Molloy <james at jamesmolloy.co.uk> wrote:> You're asking lli to create a JIT for ARM code on an Intel platform... > That's not realistically going to be achievable :) > > Cross compilation is easy, cross execution requires an emulator.This seems like a common enough misconception, that I slightly re-worded the lli docs to make sure this is clear: http://llvm.org/docs/CommandGuide/lli.html cheers, --renato