title: C/C++ to MIPS Assembly
body: <p>I know that to compile to assembly, I should use the <code>-S</code>option with <code>gcc</code> or <code>g++</code>, but how do I get MIPS assembly?</p>
  
  <p>I tried</p>
  
  <pre><code>g++ -march=mips2 dll.c 
  </code></pre>
  
  <p>but that gives the error</p>
  
  <pre><code>dll.c:1:0: error: bad value (mips2) for -march= switch
  </code></pre>
  
  <p>I saw a suggestion of the compile command <code>mips_gcc</code>, but I can't find how to install that compiler.</p>
  
  <p>I'm using Ubuntu 64-bit, if that helps.</p>