Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Are there any particularly good books for understanding how C++ works \"under th

ID: 652714 • Letter: A

Question

Are there any particularly good books for understanding how C++ works "under the hood"? My reasons for asking this are that I am very interested in C++ performance system programming (low latency etc).

I have been suggested the following but wasn't sure if there are any others:

C++ FAQs

Modern C++ Design

Effective C++

Basically I dont want books which are going to teach me the C++ syntax, but rather if I create this object, this is what really happens and this is achieved via this part of the operating system bla bla etc.

An example of something I recently learnt and would like to learn more similar interesting facts: if you inline C++ code too much, you will increase the program instruction size, the number of OS pages it occupies and this will increase the likelihood of TLB misses for the processor.

Explanation / Answer

You'll have a hard time finding books that go into how the operating system is used in C++, because the language itself is operating-system independent. However for the kinds of things you seem to be interested in I have a recommendation that isn't in the answer to the linked other question:

Efficient C++ by Dov Bulka and David Mayhew

It goes into some typical performance gotchas in C++ such as time taken in constructors, possibly unexpected temporaries etc.

It may be slightly out of date now with C++11, but I know that it helped me get a firm grasp of some areas to pay attention to when performance matters.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote