是否有差异之间的等号分配英寸×= 1"和" .EQU X,1"或者QUOT; .SET的x,1"在GNU天然气大会? [英] Is there a difference between equals sign assignment "x = 1" and ".equ x, 1" or ".set x, 1" in GNU Gas assembly?

查看:179
本文介绍了是否有差异之间的等号分配英寸×= 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 就根据<$ C $的文档,同样的事情C> .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.

这篇关于是否有差异之间的等号分配英寸×= 1&QUOT;和&QUOT; .EQU X,1&QUOT;或者QUOT; .SET的x,1&QUOT;在GNU天然气大会?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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