是'.set noat'不支持 MIPS 汇编?
目前,我正在学习GNU as,并在“info as”中找到了很多有用的信息。
我发现“.set noat”在MIPS指定的代码中使用,但是当在“info as”中搜索该指令时,我在节点“alpha指令”中找到了它的解释,但在“MIPS Dependent Features”中没有找到它的解释。为什么?我错过了手册中的某些内容吗?
TIA
Currently, I'm learning GNU as, and find a lot useful information in "info as".
I found ".set noat" is used in MIPS specified code, but when searching for this directive in "info as", I found its explanation in node "alpha directive", but not in "MIPS Dependent Features". Why? did I miss something in the manual?
TIA
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
.set at/noat
是 MIPS 架构的有效构造,其工作方式与 Alpha 类似,即在用户使用$at
寄存器时禁用/启用警告。有时,文档和代码并不总是 100% 同步。因此,请针对 binutils 提交错误,甚至更好 - 提供补丁。通过这样做,您可以向专业人士学习(除非他们真的很忙,就像有时会发生的那样)。
关于MIPS 与Alpha: 看来Alpha 架构受到MIPS 的影响很大。
The
.set at/noat
is a valid construction for MIPS architecture and works the similar way as on Alpha by disabling/enabling warning when$at
register is used by user.As sometimes happens, documentation and code are not always 100% in sync. So please file a bug against binutils and even better - provide a patch. By doing that, you can learn from the pros (unless they are really busy, like sometimes happens).
About MIPS vs Alpha: it seems that the Alpha architecture has been greatly influenced by MIPS's.
GNU
as
支持从 8041 微控制器系列到最强大的 Cray 等多种处理器目标(CPU 架构)。 手册的机器相关部分列出了 42 种体系结构。大多数 121 条伪指令对于所有架构都是通用的,以及标签的语义和对它们的引用。目标之间的最大区别在于特定的CPU指令、地址模式和指令编码。令人印象深刻的是,
as
可以为大多数目标生成相同的目标文件格式:COFF、ELF、a.out 和 SOM。由于大多数伪指令影响汇编器,而不是 CPU 执行,因此它们适用于大量体系结构也就不足为奇了。
GNU
as
supports gobs of processor targets (CPU architectures) from the 8041 micro-controller family to the mightiest Cray and beyond. The machine dependent section of the manual lists 42 architectures.Most of the 121 pseudo instructions are common to all architectures, as well as the semantics of labels and references to them. The big differences between targets are the specific CPU instructions, address modes, and instruction encoding. Impressively,
as
can generate the same object file formats for most targets: COFF, ELF, a.out, and SOM.Since most pseudo instructions affect the assembler, and not CPU execution, it is unsurprising that they would apply to a large number of architectures.