<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    There is also more or less a full MIPS/LLVM/Clang release available
    at<br>
    <a href="http://developer.mips.com/clang-llvm/">http://developer.mips.com/clang-llvm/</a><br>
    <br>
    It's experimental but it should work for you just fine.<br>
    <br>
    It has full info on building tool chain, libraries, binutils and
    other things.<br>
    <br>
    On 11/10/2011 04:24 PM, janarbek wrote:
    <blockquote
cite="mid:1320971061.70620.YahooMailClassic@web110201.mail.gq1.yahoo.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <table border="0" cellpadding="0" cellspacing="0">
        <tbody>
          <tr>
            <td style="font: inherit;" valign="top">I was told that I
              can use clang + llvm to get MIPS instructions on my x86
              machine.<br>
              <br>
              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.<br>
              <br>
              clang -ccc-host-triple mips-unknown-linux -ccc-clang-archs
              mips helllo.c <br>
              <br>
              clang: warning: unknown platform, assuming
              -mfloat-abi=soft<br>
              '+' is not a recognized feature for this target (ignoring
              feature)<br>
              /tmp/cc-9SOWh0.s: Assembler messages:<br>
              /tmp/cc-9SOWh0.s:8: Error: unknown pseudo-op: `.ent'<br>
              /tmp/cc-9SOWh0.s:10: Error: unknown pseudo-op: `.frame'<br>
              /tmp/cc-9SOWh0.s:11: Error: unknown pseudo-op: `.mask'<br>
              /tmp/cc-9SOWh0.s:12: Error: unknown pseudo-op: `.fmask'<br>
              /tmp/cc-9SOWh0.s:13: Error: expected comma after
              "noreorder"<br>
              /tmp/cc-9SOWh0.s:14: Error: expected comma after "nomacro"<br>
              /tmp/cc-9SOWh0.s:15: Error: no such instruction: `addiu
              $sp,$sp,-48'<br>
              /tmp/cc-9SOWh0.s:16: Error: no such instruction: `sw
              $ra,44($sp)'<br>
              /tmp/cc-9SOWh0.s:17: Error: no such instruction: `sw
              $fp,40($sp)'<br>
              /tmp/cc-9SOWh0.s:18: Error: no such instruction: `addu
              $fp,$sp,$zero'<br>
              /tmp/cc-9SOWh0.s:19: Error: no such instruction: `sw
              $zero,32($fp)'<br>
              /tmp/cc-9SOWh0.s:20: Error: no such instruction: `lui
              $2,%hi($.str)'<br>
              /tmp/cc-9SOWh0.s:21: Error: no such instruction: `addiu
              $4,$2,%lo($.str)'<br>
              /tmp/cc-9SOWh0.s:22: Error: suffix or operands invalid for
              `ja'<br>
              /tmp/cc-9SOWh0.s:24: Error: no such instruction: `sw
              $2,36($fp)'<br>
              /tmp/cc-9SOWh0.s:25: Error: no such instruction: `addiu
              $2,$zero,0'<br>
              /tmp/cc-9SOWh0.s:26: Error: no such instruction: `addu
              $sp,$fp,$zero'<br>
              /tmp/cc-9SOWh0.s:27: Error: no such instruction: `lw
              $fp,40($sp)'<br>
              /tmp/cc-9SOWh0.s:29: Error: no such instruction: `lw
              $ra,44($sp)'<br>
              /tmp/cc-9SOWh0.s:31: Error: no such instruction: `addiu
              $sp,$sp,48'<br>
              /tmp/cc-9SOWh0.s:32: Error: no such instruction: `jr $ra'<br>
              /tmp/cc-9SOWh0.s:34: Error: expected comma after "macro"<br>
              /tmp/cc-9SOWh0.s:35: Error: expected comma after "reorder"<br>
              clang: error: assembler command failed with exit code 1
              (use -v to see invocation)<br>
              <a class="moz-txt-link-abbreviated" href="mailto:jmatai@ubuntu:~/Work/llvm2.9/projects/hw_mips$">jmatai@ubuntu:~/Work/llvm2.9/projects/hw_mips$</a> <br>
              <br>
            </td>
          </tr>
        </tbody>
      </table>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a class="moz-txt-link-freetext" href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>