[LLVMdev] Mips instructions using llvm?

janarbek canarbekmatay at yahoo.com
Mon Nov 12 17:22:59 PST 2012

Hi Eli,
What do you mean by "kind of vague" ? So does not guarantee to generate correct instructions ?
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:1In file included from /usr/include/stdio.h:28/usr/include/features.h:323:10 fatak error 'bits/predefs.h' file not found.

Phone : 82-42-860-1838
Fax : 82-42-860-6790  Cell Phone: 82-10-7599-1981  ===========================================

--- On Mon, 11/12/12, Eli Friedman <eli.friedman at gmail.com> wrote:

From: Eli Friedman <eli.friedman at gmail.com>
Subject: Re: [LLVMdev] Mips instructions using llvm?
To: "janarbek" <canarbekmatay at yahoo.com>
Cc: llvmdev at cs.uiuc.edu
Date: Monday, November 12, 2012, 4:55 PM

On Mon, Nov 12, 2012 at 4:41 PM, janarbek <canarbekmatay at yahoo.com> wrote:
> Hi All,
> Is there any way to generate MIPS instructions from C code in llvm ?

"Generate MIPS instructions" is kind of vague, but something like
"clang myfile.c -S -target mips-unknown-linux" will make clang
generate MIPS assembly.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121112/0480db03/attachment.html>

More information about the llvm-dev mailing list