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… Read More equivalent of "dd" (nasm) in Gnu Assembler
I can’t seem to find any command switch to show me the expansions of my macro definitions. Is there a way to do this with the GNU Assembler? For example, if I have a macro like this: .macro MACROA a mov \a,%rax .endm MACROA $10 I’d like to see the expansions of this like so:… Read More Show macro expansions in GNU Assembler – AS – listing. Preprocess only?
I learning MIPS assembly and I want to assemble a MIPS assembly using as or gas command Looking at the manual page I tried to assemble using as -mips32 myfile.asm But it said it is an unrecognized option I also tried to use as -march=r3000 myfile.asm but that also didn’t work it said Assembler messages:… Read More How to assemble for MIPS cpu in the gnu assembler
While defining a variable in a section like this, .section ".__mydebug", "aw" mydstart: .double 0x123456789abcdef0 myptr: .double 0x8888888899999999 I get arch/arm64/kernel/head.S:994: Error: junk at end of line, first unrecognized character is `a’ If I change 0x123456789abcdef0 to 0x1234567890000000, it compiles ok. So it seems the compiler (gcc) doesn’t understand the hex chanaracters. I tried 0x123456789ABCDEF0… Read More junk at end of line, first unrecognized character is `a' while defining a variable in assembly (arm64, gcc)