title: Resources on converting syntax tree to assembly?
body: <p>Primarily as a learning exercise, I am writing a virtual machine, an assembler, and a compiler from scratch, depending on no external tools.</p>
  
  <p>I believe I have a decent conceptual understanding of how the virtual machine and assembler will work, as well as some parts of the compiler.</p>
  
  <p>Here's what I want to know:
  <strong>In the compiler, suppose I have turned the source code into a syntax tree.  What process do I go through to then convert this syntax tree to assembly?</strong></p>
  
  <p>(Let's assume some simple language constructs, like if and while.  I'm looking for a minimal and simple explanation here.)</p>
  
  <p>I am not particularly interested in complex solutions, or solutions based on existing tools.  Rather, I'd like something on the order of a 1-page, broad sweeping description of the ideas behind going from syntax tree to assembly.</p>
  
  <p>Anyone know of such a resource?</p>
  
  <p>Thanks :)</p>