[LLVMdev] Mips instructions using llvm?

David Chisnall dc552 at cam.ac.uk
Mon Nov 12 17:31:17 PST 2012

On 12 Nov 2012, at 17:22, janarbek wrote:

> What do you mean by "kind of vague" ? So does not guarantee to generate correct instructions ?

Your question is vague.  Generally, you get better answers if you ask better questions.

> I just tried what you said but getting following error ? Any ideas ? 
> What I did is clang hello.c -S -target mips-unknown-linux
> Error: 
> In file included from hello.c:1
> In file included from /usr/include/stdio.h:28
> /usr/include/features.h:323:10 fatak error 'bits/predefs.h' file not found.

This sounds like you are using headers that do not support MIPS.


More information about the llvm-dev mailing list