引用不带美元符号的常量是否有不同的含义? [英] Does referencing constants without a dollar sign have a distinct meaning?

查看:99
本文介绍了引用不带美元符号的常量是否有不同的含义?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写道:

mov 60, %rax

GNU as接受了,尽管我应该写过

GNU as accepted it, although I should have written

mov $60, %rax

两个这样的通话之间有区别吗?

Is there any difference between two such calls?

推荐答案

是;第一种将存储在地址60中的值存储在内存中,并将结果存储在rax中,第二种将立即值60存储在rax中.

Yes; the first loads the value stored in memory at address 60 and stores the result in rax, the second stores the immediate value 60 into rax.

这篇关于引用不带美元符号的常量是否有不同的含义?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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