title: Compilers: How do I generate and assemble my assembly code
body: <p>If I've written a compiler that translates my code into three address code, how do I decide whether to convert that three address code to, say, MIPS or ARM assembly code. Once that's done, how do I call the assembler to create a program from this code? </p>
  
  <p><strong>Possible Resolution:</strong> <a href="https://stackoverflow.com/users/219159/seva-alekseyev">Seva Alekseyev</a> pointed out GNU has a command <code>as</code> that will assemble assembly code. I had the assumption that I needed to pick any assembler I wanted and then figure out how to call the assembler using the programming language that I was writing my compiler in. It sounds like the assembler is not necessarily chosen but is usually specific to the machine that your code will be compiled on. This makes things a bit more clear to me. </p>