Jump to content
Tuts 4 You

C/C++ into assembly code

Aldhard Oswine

Recommended Posts

Aldhard Oswine

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

Link to comment

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. :)


  • Like 2
Link to comment
Aldhard Oswine

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.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...