title: Where in the GCC source code does it compile to the different assembly languages?
body: <p>Where is the code in the GCC source code that actually constructs the assembly for the different architectures?</p>
  
  <p>Wondering how many different assembly languages it compiles to, and how it actually does this (by taking a look at the source code).</p>
  
  <p>Is it in the gcc repo somewhere, or in another repo? I have started to dig around but haven't found anything.</p>
  
  <p><a href="https://github.com/gcc-mirror/gcc">https://github.com/gcc-mirror/gcc</a></p>
  
  <p>For example, here is some of the assembly generating code in V8:</p>
  
  <p><a href="https://github.com/v8/v8-git-mirror/tree/master/src/x64">https://github.com/v8/v8-git-mirror/tree/master/src/x64</a></p>
  
  <p>Is there anything equivalent for GCC?</p>
  
  <p>I am wondering because it's a mystery how GCC does this, and it would be a great way to learn how compilers are actually implemented down to the assembly level.</p>