如何查看code :: Blocks的拆卸? [英] How to view the disassembly in Code::Blocks?
问题描述
我看了 关于C / C ++的一些低级别基础,作者基本上是向我们展示了通过编译器生成的汇编code,一行行。他使用VS 2010,但我不这样做,我用code :: Blocks的。如何查看拆装呢?当我去调试器,单击拆卸,它显示我一个空白窗口...
这是我编译C ++(的.cpp)code(全code):
INT的main()
{
INT X = 1;
INT Y = 2;
INT Z = 0; Z = X + Y; 返回0;
}
那种拆卸,作者显示在文章中被称为间叶拆卸
(C和拆卸交错)这几家的IDE如Visual Studio支持。 code块不支持。但是,code块有这样一个独立的反汇编窗口
选择一个源代码行。右键点击。说运行到光标
。现在调试 - >调试Windows的>拆卸
。相反,运行到光标,您还可以设置断点,然后做到这一点。但不知何故未与矿顺利,所以我建议运行到光标
方法。
希望它帮助。
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...
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;
}
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
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.
Hope it helps.
这篇关于如何查看code :: Blocks的拆卸?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!