While scanning reddit, I found two virtual machine links. The first is a free book on the basics of compiler design. It goes over parsing, type checking, code generation, register allocation, and even bootstrapping! It has a lot of ugly greek symbols, but seems like a good reference.
The other is a talk by Paul Biggar, one of the main developers for phc, the open source PHP compiler. It's on compiling and optimizing scripting languages.