Link to home
Create AccountLog in
Avatar of lavitz
lavitzFlag for Poland

asked on

How to view code generated by compiler

Hi,

Iam using visual studio c++. And i wonder how to view code generated by compiler in human readable format.
Avatar of jkr
jkr
Flag of Germany image

Open a "Visual Studio Command Prompt" (you'll find that in the "Tools" menu), navigate to your executable and type

dumpbin.exe /disasm myfile.exe
BTW, you'll find some more apps that do thatat http://en.wikipedia.org/wiki/Disassembler - with IDA (http://www.hex-rays.com/idapro/) probably being the most powerful one.
Avatar of lavitz

ASKER

i mean, code generated that looks like c++ code. From what i know, in gcc there is such option
ASKER CERTIFIED SOLUTION
Avatar of jjmcd
jjmcd

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of lavitz

ASKER

i mean that gcc have option like -fdump-tree-original or others that generates code almost similary to c++ and with this i could see i.e default constructors generated by compiler and other things.
You mean a call graph? Um, that's something completely different - apart from that, google suggest that such an option never existed...