equivalent of "dd" (nasm) in Gnu Assembler

I’d like to know how to translate "dd" from nasm to GAS. I can’t find it anywhere in the manual.

Thanks

>Solution :

In NASM, the "dd" pseudo op defines a "double word" (e.g. 4 byte integer):

http://www.tortall.net/projects/yasm/manual/html/nasm-pseudop.html

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

In Gas, the corresponding directive would typically be ".long":

https://ftp.gnu.org/old-gnu/Manuals/gas-2.9.1/html_chapter/as_7.html

; example:
dimensions:
  .long 0, 0

Leave a Reply