Can someone recommend good books that explain what happens under the hood of compiles.
Whenever I code in C++ I feel like i'm spawning black holes all over the place because I don't know what happens/how will the code get compiled (into what ASM) or what is the best way to code something to achieve maximum performance ? Are books in pic related decent ?
>>54324015
Dragon Book
>>54324015
The very hungry compiler
The dragon book or wait for TAOCP Volume 7
Or you could try looking at the monster that is gcc
This one pretty good if you don't mind reading over 1000 pages.
It's good though, teaches how you can optimize your code by taking advantage of how the machine deals with memory
It does so in the light of C but C++ is really just C on steroids. I don't know how the object system is implemented though
>>54324852
No one cares about optimization
>>54324015
If C++ is hard for you, I suggest picking up an easier language first.