push和pop在AMD64 [英] Push and Pop on AMD64

查看:387
本文介绍了push和pop在AMD64的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是 pushl%ECX popl%ECX 在AMD64系统正的equivilent,我的结果是错误:无效的指令后缀为推我有看,​​有一种人建议将 ECX RCX 但只是导致与使用了不正确寄存器%RCX'L'后缀

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

感谢您的帮助。

推荐答案

在AMD64,弹出操作隐式64位,没有32位同行。尝试:

On AMD64, push and pop operations are implicitly 64-bits and have no 32-bit counterparts. Try:

pushq %rcx
popq %rcx

请参阅这里了解详情。

这篇关于push和pop在AMD64的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆