# XXX 64bits .data # Data section msg: .asciz "Hello World!\n" # String len = . - msg # String length .text # Text section .globl main # Export entry point to ELF linker main: # Write the string to stdout movq $msg, %rdi # 1st argument: pointer to string call puts xorq %eax, %eax ret