Tell me more ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

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.

share|improve this question
2  
You're talking about two completely different concepts here. C++/Java object models/how they work under the hood, and data structures. Data structures is a topic completely independent of programming language. – Billy ONeal Feb 24 '11 at 23:33

migrated from stackoverflow.com Feb 25 '11 at 0:29

3 Answers

One of the best classics is: "Data Structures and Algorithms" by Aho and Ullman. A little bit old but the fundamentals are (and will be) still relevant.

http://www.amazon.com/Data-Structures-Algorithms-Alfred-Aho/dp/0201000237/ref=pd_rhf_p_t_2

If you are looking for something more advanced (and a lot more complex) then you should definitely get "The art of computer programming" by Knuth which is the bible of programming but it's not as easy to read as the above book.

None of these are specific to any of the modern languages. You can also get something like "The Design Patterns" which helps you solve problems using object oriented design.

share|improve this answer

Takes a game dev perspective but I found http://www.amazon.com/Data-Structures-Algorithms-Developers-Development/dp/1584504951 to be a great book covering a wide range of structures

share|improve this answer

For C++ Inside the C++ Object Model by Stanley Lippman comes to mind.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.