是否有差异之间的等号分配英寸×= 1"和" .EQU X,1"或者QUOT; .SET的x,1"在GNU天然气大会?

问题描述:

例如:

a = 1

.equ a, 1

.set a, 1

都产生相同的输出后,逐字节:

all produce the same output byte-by-byte upon:

as --32 main.S

根据

CMP

我知道 .EQU .SET 就根据 .EQU : https://sourceware.org /binutils/docs-2.25/as/Equ.html

这是`.SET的代名词。

It is synonymous with `.set'.

和我知道,从 .EQU 做href=\"http://stackoverflow.com/questions/21624155/difference-between-equ-and-word-in-arm-assembly\">Difference在ARM汇编.EQU和.word之间?

and I know what .equ does from Difference between .equ and .word in ARM Assembly?

那么,关于 = ?它是一样的另外两个?

So what about =? Is it the same as the other two?

这是一样的。

grepping文档源之后,我发现,证实了这一点的 https://sourceware.org/binutils/docs-2.25/as/Setting-Symbols.html

After grepping the documentation source, I've found the section that confirms it https://sourceware.org/binutils/docs-2.25/as/Setting-Symbols.html

一个符号可以通过编写一个符号被赋予任意值,后跟一个等号'=',接着是前pression(见出pressions)。这等同于使用.set指令。

A symbol can be given an arbitrary value by writing a symbol, followed by an equals sign `=', followed by an expression (see Expressions). This is equivalent to using the .set directive.