Conclusion


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.

Feedback

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


up

Want to learn (C/C++ internals) directly from the author using video call? Learn more

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