简体   繁体   English

相当于 Gnu Assembler 中 NASM 的“dd”

[英]equivalent of NASM's "dd" in Gnu Assembler

I'm trying to translate dd from NASM (or MASM) to GAS.我正在尝试将dd从 NASM(或 MASM)翻译成 GAS。
I can't find it anywhere in the manual.我在手册中的任何地方都找不到它。

In NASM, the dd pseudo op defines a "double word" (eg 4 byte integer):在 NASM 中, dd伪操作定义了一个“双字”(例如 4 字节整数):

http://www.tortall.net/projects/yasm/manual/html/nasm-pseudop.html http://www.tortall.net/projects/yasm/manual/html/nasm-pseudop.html
https://nasm.us/doc/nasmdoc3.html#section-3.2 https://nasm.us/doc/nasmdoc3.html#section-3.2

; Example:
dd      0x12345678          ; 0x78 0x56 0x34 0x12

In Gas, the corresponding directive would typically be .long :在 Gas 中,相应的指令通常是.long

https://sourceware.org/binutils/docs/as/Long.html https://sourceware.org/binutils/docs/as/Long.html

; example:
dimensions:
  .long 0, 0

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM