Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.

Mixed by Source/Assembly Output

chris
Beginner
311 Views
Is there anyway to see the assembly output corresponding to a source file? I know that with Vtune the mixed by source option can show the resulting assembly instructions beneath the original source code. However, it seems awkard to have to profile the code just to see the output of the compiler. I am using the Intel C++ compiler integrated into the Microsoft Visual Studio 2005 IDE.
0 Kudos
2 Replies
Nicolae_P_Intel
Employee
311 Views

You do not need to profile the binary to get that info. Start vTune, select open file and open your executable. Then double click on your function and once you let vtune know where your file source is is your source then it will display the assembly beneath the source file (if you select that view).

Hope it helps.

Nick

0 Kudos
TimP
Honored Contributor III
311 Views
You could set one of the options to generate a .asm file, showing source line numbers in the comment field.
0 Kudos
Reply