On Thursday, 8 February 2018 at 18:49:51 UTC, Steven
Schveighoffer wrote:
I wonder if it's an issue with how obj2asm prints it out?
Surely, that data array must be contiguous, and they must be
bytes. Otherwise the resulting code would be wrong.
OK. I didn't even know about obj2asm until you mentioned it.
objdump seems to work perfectly fine on the .o's that dmd
generates, and I can tell that x"deadbeef" generates 4 contiguous
bytes (objdump -D):
Disassembly of section .rodata.str1.1:
0000000000000000 <_TMP0>:
0: de .byte 0xde
1: ad lods %ds:(%rsi),%eax
2: be .byte 0xbe
3: ef out %eax,(%dx)
...