Understanding the internals of any compiler always helps in writing good code. It also helps in troubleshooting, debugging etc. Sometimes while debugging, you might have to deal with disassembled code. If you understand the internals, then you can easily understand the disassembled code and your productivity will increase.

What Next?

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

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


Please let me know your feedback about the whole article. I can be contacted on my Gmail id rajeevku02.


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