The "C Internals" has described the details of code generation of the gcc compiler. It has described how a C code is translated into assembly language. Understanding the internals of compiler and code generation can help in many ways. It will often help you in troubleshooting, debugging, reverse engineering etc.

What Next?

To gain deeper understanding, you should start developing the habit of reading the code which is generated by C a compiler. Here are two ways you can read the disassembled code:

Useful tools: ld, objdump, readelf, objcopy, nm, strip, ldd.


You can give feedback to me (author) via email. I can be contacted on Gmail id rajeevku02.


Do you collaborate using whiteboard? Please try Lekh Board - An Intelligent Collaborate Whiteboard App