Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get the assembler output from a C file in VS2005

I think the file that is produced is an .asm file, any idea how to produce this in Visual Studio when you do a build?

like image 474
Peter C Avatar asked Aug 29 '08 16:08

Peter C


People also ask

How do you get assembler output from C C++ source in gcc?

Master C and Embedded C Programming- Learn as you go The gcc provides a great feature to get all intermediate outputs from a source code while executing. To get the assembler output we can use the option '-S' for the gcc. This option shows the output after compiling, but before sending to the assembler.

What is the output of the assembler C++?

The output of the assembler program is called the object code or object program relative to the input source program. The sequence of 0's and 1's that constitute the object program is sometimes called machine code.

Does gcc output assembly?

Luckily, gcc does not output binary machine code directly. Instead, it internally writes assembler code, which then is translated by as into binary machine code (actually, gcc creates more intermediate structures). This internal assembler code can be outputted to a file, with some annotation to make it easier to read.


2 Answers

  1. Open the Properties page for a project
  2. Select the Configuration Properties -> C/C++ -> Output Files branch
  3. Change the Assembler Output option to something other than No Listing
  4. Make sure ASM List Location is set to a valid path or sub-path
  5. Build.
like image 56
Shog9 Avatar answered Oct 04 '22 21:10

Shog9


Project->Properties->Configuration Properties->C/C++->Output Files

There you should see an option for Assembler Output.

John.

like image 29
John Richardson Avatar answered Oct 04 '22 23:10

John Richardson