推送和弹出AMD64 [重复](Push and Pop on AMD64 [duplicate])
这个问题在这里已有答案:
每个PUSH指令是否在x64上推送8个字节的倍数? 2个答案什么是AMD64系统上的pushl %ecx和pushl %ecx的pushl %ecx ,我的结果是Error: invalid instruction suffix for 'push'我看了一下,有人建议将ecx更改为rcx但这只会导致Incorrect register '%rcx' used with 'l' suffix
谢谢你的帮助。
This question already has an answer here:
Does each PUSH instruction push a multiple of 8 bytes on x64? 2 answersWhat is the equivilent of pushl %ecx and popl %ecx on a AMD64 sytem, My results are Error: invalid instruction suffix for 'push' I have had a look and some one suggested changing ecx to rcx but that just resulted in Incorrect register '%rcx' used with 'l' suffix
Thanks for your help.
最满意答案
在AMD64上, push和pop操作隐式为64位,没有32位对应项。 尝试:
pushq %rcx popq %rcx详情请见此处 。
On AMD64, push and pop operations are implicitly 64-bits and have no 32-bit counterparts. Try:
pushq %rcx popq %rcxSee here for details.
更多推荐
发布评论