[LLVMdev] How to get MIPS from clang + llvm ?

Joerg Sonnenberger joerg at britannica.bec.de
Thu Nov 10 19:42:25 PST 2011


On Thu, Nov 10, 2011 at 04:24:21PM -0800, janarbek wrote:
> I did following command and got error below. Does anyone have any idea?
> or can someone suggest me how to get MIPS instructions easily from llvm.
> 
> clang -ccc-host-triple mips-unknown-linux -ccc-clang-archs mips helllo.c 

Make sure that as and ld in path are from the MIPS toolchain.
Alternatively, make sure that mips-unknown-linux-as and
mips-unknown-linux-ld exist. The latter is searched first, so easier to
use by avoiding conflicts with native toolchain.

Joerg



More information about the llvm-dev mailing list