Stanford University: Keith Schwarz's "Introduction to Compilers"
For a slightly different overview of compilers, study slides 8-47. These slides make an analogy between compilation and the equivalence-preserving transformations of an electrical circuit.
Click http://www.keithschwarz.com/cs143/WWW/sum2011/lectures/000_Introduction_to_Compilers.pdf link to open resource.