Possible Duplicate:
How to generate assembly code from C++ source in Visual Studio 2010可能的重复:如何在Visual Studio 2010中从c++源代码生成汇编代码
Hello. How can I compile C++ code to asm in Visual Studio?
你好。如何在Visual Studio中编译c++代码到asm ?
In gcc I just add one parampeter: -s
在gcc中,我只添加了一个参数-s
3 个解决方案
#1
7
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
看起来/FAs是命令行参数。GUI中还有一个设置:http://codegem.org/2008/10/generate-assembly-from-c-code-in-visual-studio
#2
4
find project in solution explorer
在解决方案资源管理器中找到项目
right click properties
右击属性
c/c++
c / c++
output files
输出文件
assembler output
汇编程序输出
#3
3
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.
如果您想从IDE生成它,goto项目属性> C/ c++ >输出文件。其中有一个选项叫做“汇编输出”。默认情况下,它的设置为“无列表”。拉下菜单,选择适合你的选项。
#1
7
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
看起来/FAs是命令行参数。GUI中还有一个设置:http://codegem.org/2008/10/generate-assembly-from-c-code-in-visual-studio
#2
4
find project in solution explorer
在解决方案资源管理器中找到项目
right click properties
右击属性
c/c++
c / c++
output files
输出文件
assembler output
汇编程序输出
#3
3
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.
如果您想从IDE生成它,goto项目属性> C/ c++ >输出文件。其中有一个选项叫做“汇编输出”。默认情况下,它的设置为“无列表”。拉下菜单,选择适合你的选项。