[LLVMdev] Mips instructions using llvm?

Reed Kotler rkotler at mips.com
Wed Nov 14 12:53:46 PST 2012


See:

https://dmz-portal.mips.com/wiki/Clang_cross_compilation

On 11/12/2012 05:31 PM, David Chisnall wrote:
> 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.
>
> David
>




More information about the llvm-dev mailing list