Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在调试一段具有以下指令的代码。
mov %esi,0x0(%r13)
然后在另一个地方,我看到这样的指令:
mov %esi,(%r13)
我认为前者将esi寄存器的内容移动到由r13 + 0x0. 按照这种逻辑,后者也应该产生相同的效果。
esi
r13 + 0x0
这些指令之间有什么区别吗?
为什么 gcc 写相同的东西不同?
编辑:反汇编是使用生成的objdump -S。
objdump -S