简体   繁体   English

Visual Studio 2012 Ultimate中的反汇编

[英]Disassembly in Visual Studio 2012 Ultimate

I'd like to check the generated assembly code of the compiler optimized parts (release) of my C++ code in Visual Studio 2012 Ultimate. 我想在Visual Studio 2012 Ultimate中检查生成的C ++代码编译器优化部分(发布)的汇编代码。 There are articles on the web about a Disassembly window, but I can't access it. 网上有关于反汇编窗口的文章,但我无法访问它。

The disassembly window is available during debugging of applications through the menu 在通过菜单调试应用程序期间,可以使用反汇编窗口

  • Debug -> Window -> Disassembly 调试 - >窗口 - >反汇编

It is possible that the Visual Studio profile you chose excluded this option. 您选择的Visual Studio配置文件可能会排除此选项。 If so then you can just invoke the following command from the Command Window while debugging and it will show the window 如果是这样,那么您可以在调试时从命令窗口调用以下命令,它将显示窗口

  • View -> Other Windows -> Command Window 查看 - >其他Windows - >命令窗口
  • Type: Debug.Disassembly 键入:Debug.Disassembly

在包含您希望检查反汇编的函数的cpp文件的属性页中,转到“输出文件”类别,您可以启用程序集转储到提供的文件名。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM