title: Does GCC support multiple target architectures?
body: <p>Is it possible to compile a single <code>gcc</code> (frontend) binary which supports multiple target architectures, which I can select in the command-line, like this:</p>
  
  <pre><code>$ gcc --architecture=linux-i386 ...
  $ gcc --architecture=freebsd-arm ...
  $ gcc --architecture=darwin-amd64 ...
  </code></pre>
  
  <p>I know that it's possible build gcc as a cross-compiler, but is it possible to select the target architecture using a command-line flag, without writing a wrapper script which starts different <code>gcc</code> binaries for each architecture?</p>
  
  <p>For i386 and amd64 <code>-m32</code> and <code>-m64</code> seem to do the trick, but how do I select ARM etc.? Please note that <code>-march=</code> looked useless to me, I couldn't make it change from i386 to amd64.</p>