University of California, Berkeley: Paul Hilfinger's "Code Generation"
These notes discuss generation of intermediate code for a stack machine, stack machine with accumulator, and for a TAC machine.
Click http://web.archive.org/web/20160502180606/http://inst.eecs.berkeley.edu/~cs164/sp11/lectures/lecture31.pdf link to open resource.