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

前端 未结 3 919
死守一世寂寞
死守一世寂寞 2020-12-04 01:38

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?

相关标签:
3条回答
  • 2020-12-04 02:19
    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.
    0 讨论(0)
  • 2020-12-04 02:19

    Or if using the Visual Studio command line,

    cl.exe /Fa[assembler code filename]

    If you just want to view the assembler code in the IDE you can start the debugger and then select the Go To Dissassembly choice on the right click menu.

    0 讨论(0)
  • 2020-12-04 02:31

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

    There you should see an option for Assembler Output.

    John.

    0 讨论(0)
提交回复
热议问题