[Bug c/63318] Hello World C program using inline assembly to invoke write(2) on amd64 Linux fails to print Hello World
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Sep 20 20:19:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63318
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
>That worked, although I am not sure how given that the string is missing in assembly output:
it is not missing:
movabsq $8022916924116329800, %rax
movq %rax, -48(%rbp)
movl $560229490, -40(%rbp)
movw $10, -36(%rbp)
Those 4 instructions store the string into memory starting at -48(rbp).
More information about the Gcc-bugs
mailing list