8

Possible Duplicate:
How to generate assembly code from C++ source in Visual Studio 2010

Hello. How can I compile C++ code to asm in Visual Studio?

In gcc I just add one parampeter: -s

Community
  • 1
  • 1
Hooch
  • 27,337
  • 28
  • 91
  • 157

3 Answers3

8

Looks like /FAs is the command-line argument. There is also a setting in the GUI: http://codegem.org/2008/10/generate-assembly-from-c-code-in-visual-studio

Chris Morgan
  • 2,070
  • 16
  • 19
5

find project in solution explorer

right click properties

c/c++

output files

assembler output

danatel
  • 4,684
  • 10
  • 47
  • 62
4

If you want to generate it from the IDE, goto project properties > C/C++ > Output files. In that you have an option called "Assembler Output". By default its set to "No Listing". Pull down the menu and select the option that suits you.

yasouser
  • 4,991
  • 2
  • 26
  • 39