推送和弹出AMD64 [重复](Push and Pop on AMD64 [duplicate])

编程入门 行业动态 更新时间:2024-10-23 23:34:43
推送和弹出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 answers

What 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 %rcx

See here for details.

更多推荐

本文发布于:2023-07-29 18:30:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1318642.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:弹出   Push   Pop   duplicate

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!