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
  • 28,817
  • 29
  • 102
  • 161

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,080
  • 15
  • 19
5

find project in solution explorer

right click properties

c/c++

output files

assembler output

danatel
  • 4,844
  • 11
  • 48
  • 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
  • 5,113
  • 2
  • 27
  • 41