# XXX 32bits .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 pushl $msg # 1st argument: pointer to string call puts addl $4, %esp xorl %eax,%eax ret