如何在Code :: Blocks中查看反汇编? [英] How to view the disassembly in Code::Blocks?

查看:4896
本文介绍了如何在Code :: Blocks中查看反汇编?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我阅读了本文关于C / C ++的一些低级基础,作者基本上通过编译器生成的汇编代码逐行显示我们。他使用VS 2010,但我不,我使用Code :: Blocks。如何查看反汇编?当我去调试器,并单击反汇编,它显示一个空白的窗口...

I read this article about some low level underpinnings of C/C++, and the author is basically showing us through the assembly code generated by the compiler, line by line. He is using VS 2010, but I don't, I use Code::Blocks. How do I view the disassembly there? When I go to debugger, and click disassembly, it shows me a blank window...

这是C ++(.cpp)代码:

This is the C++ (.cpp) code (the whole code) I compiled:

int main()
{
    int x = 1;
    int y = 2;
    int z = 0;

    z = x + y;

    return 0;
}


推荐答案

作者显示在文章中被称为 inter-leaved反汇编(C和反汇编交错)几个IDE像Visual Studio支持。代码块不支持。但是代码块有一个单独的反汇编窗口,像这样

The kind of disassembly that the author shows in the article is called inter-leaved disassembly ( C and disassembly interleaved ) which a few IDEs like Visual Studio support. Code Blocks does not support. But Code Blocks has a separate disassembly window like this

选择源代码行。右键点击。说出运行到游标。现在 Debug->调试Windows->反汇编。而不是运行到光标,你也可以设置断点,然后这样做。但是不知何故,它不能很好地与我的,所以我建议运行到游标方法。

Select a source line. Right Click. Say Run to Cursor. Now Debug->Debugging Windows->Disassembly. Instead of Run to cursor you can also set break points and then do this. But somehow it wasn't going well with mine, so I am suggesting Run to Cursor method.

希望它

这篇关于如何在Code :: Blocks中查看反汇编?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆