Posted December 13, 20168 yr Is there any book or articles about how C/C++ code is translated into assembly code? like how classes or structs, pointers, etc. are translated into an assembly code
December 13, 20168 yr The thing that you are looking for is the work 'behind the scene' of a compiler. There are a lot of resource for that, one of the most famous known as dragon book: Compilers: Principles, Techniques, and Tools Also universities free resources are available like: Basics of Compiler Design and Let's Build a Compiler You can find thousand of papers on Google. The faster way to learn is obviously to grab an IDE and code yourself what you would like to see in ASM representation and compile it.
December 13, 20168 yr Author Thanks, guyes. I'm using disassembler and it's the great way to learn but a book is also very helpful. "Compilers: Principles, Techniques, and Tools" looks like great. Thanks again.
Create an account or sign in to comment