这绝对是令人着迷的,但我对编译器如何巧妙地将 C 代码转换为机器指令感到着迷。由于我对某些指令有点模糊,因此如果我能够在单个机器指令级别(“低于”C 语句级别(可能会生成多个 CPU 指令))观察已编译程序的操作,将会很有帮助。换句话说,我可以在一条机器指令之后观察寄存器/内存的变化吗?
我确信其他一些调试器也可以,但我只使用 Xcode。
It's possible to use Xcode's step over, step in, and step out commands with the debugger. The trick is to hold the ctrl (Control) key while you mouse over the debugger step icons to change the context. Underneath each step icon, the line will change to a dot and you can then step at the instruction level.
请参阅所附的用红色椭圆突出显示的屏幕截图。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)