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.
我想知道 GNU 汇编中这些变量有什么区别。谢谢!
$variable_name variable_name (variable_name)
$,.和_是符号名称的一部分,所以a和$a只是两个不同的符号。该$字符没有任何特殊含义(如在 shell 中)。
$
.
_
a
$a
所以前两个只是不同的符号。
括号用于数学运算;它们不是符号名称的一部分,因此a和(a)是等价的,而(a*b)+1不是a*(b+1)。
(a)
(a*b)+1
a*(b+1)