r/C_Programming • u/NGX123 • Apr 21 '21
My question is not about a C book that talks about some external libraries or algorithms, instead what I am searching for is a C book that describes the C-Assembly relation(how c is compiled into assembly), for example how different things from c are represented and implemented in assembly. Would appreciate some recommendations.
Also when I started C I didn't have any experience with system languages before, so for the first couple of month I didn't even use tools like the linker and had everything in several C files included in another C file, and now my friend who is also learning c has the similar problems. So are other any books that talk about C tooling - debugers, linkers...
Thanks, in advance as these books would be very usefull
2
u/jonahharris Apr 22 '21
As a compiler developer, I agree with you. A human can often optimize a short section of code. A human, however, cannot generally grok an entire codebase and the overall flow/operations therein, which a compiler is designed to track and optimize for - especially when looking at actual runtime behavior and complex sequences of operations where things like profile-guided optimization are (somewhat) good at.