In NASM (Intel), I can write this:
mov rax, `Hello!\n`
And it's equivalent to this:
mov rax, 0xa216f6c6c6548
Does GAS (AT&T) support any equivalent shorthand for that, or am I stuck writing this?
movabsq $0xa216f6c6c6548, %rax
In NASM (Intel), I can write this:
mov rax, `Hello!\n`
And it's equivalent to this:
mov rax, 0xa216f6c6c6548
Does GAS (AT&T) support any equivalent shorthand for that, or am I stuck writing this?
movabsq $0xa216f6c6c6548, %rax
Unfortunately GAS doesn't have such a feature. Given that GAS was really designed for assembly language output by compilers, my best guess is this feature was probably never seen as something that added much value. Had GAS originally been designed for humans to generate assembly code then such a feature likely would have been added.