[LLVMdev] Generate Executable to Mips

Joerg Sonnenberger joerg at britannica.bec.de
Mon Feb 27 18:46:22 PST 2012

On Mon, Feb 27, 2012 at 06:39:18PM -0800, reed kotler wrote:
> 2) there is a way to invoke it all directly with just a call to
> clang as is with x86/linux but it's not totally
> finished. i will try and post something about this. the direct form
> will work if you are on a
> mips linux machine but there are still some issues running it as a cross.

Well, in principle it should be enough to make a symlink from clang to
mips-linux-gnu-clang and use that, if you also have mips-linux-gnu-ld and
mips-linux-gnu-as. Some fine tuning for the detection of crt*.o
locations might be needed, but -B ${PATH_TO_CRT1_O} etc can workaround
that as well.


More information about the llvm-dev mailing list