Lambda the Ultimate links to a cool little paper, An Incremental Approach to Compiler Construction. It’s literally a short tutorial on how to write a compiler. It concentrates on the least-complicated but most-intimidating phase: machine code generation.