What are the best books for understanding how languages work 'under the hood'? If there is anon-language-specific book that discusses more of the general principles, that is preferable. If it is language-specific, I'm especially interested in C++ and Java.
I actually want to know whats happening when I write certain code.