0

Hello guys.

I currently code in C++.But I want to gain knowledge of internals of C++.So , I want to analyse my each and every program in ASM.

I use Windows 7 platform and code::blocks.Please provide necessary information or tools , which can help me in this regard.

Thanks!

3
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by gusano79
0

g++ -S foo.cpp will produce a foo.s file, which is the ASM code corresponding to your source code.

If you use custom makefiles in c::b, you might be able to generate them automatically.

0

Thanks for reply.But please explain how I produce asm code through that command.I mean where to put that command in c::b , as I always use "run and build" button.

Edited by L0s3r: n/a

1

Thanks for reply.But please explain how I produce asm code through that command.I mean where to put that command in c::b , as I always use "run and build" button.

"Project" menu > "Build Options..." item > "Compiler settings" tab > "Other options" sub-tab > Add compiler options to the text area.

What you type in depends on your compiler. If you're using GCC, try "-save-temps"--it will both compile your program and preserve the generated assembly files.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.