.data #data section declaration msg: .ascii "Hello, World!\n" len = . - msg #string length .text #code section declaration .global main #entry point (start of execution) main: pushl $len #string length pushl $msg #string start pushl $1 #file handle: stdout movl $4,%eax #sys_write call sys_call addl $12,%esp #clean up stack pushl $0 #return value movl $1,%eax #sys_exit call sys_call sys_call: int $0x80 #kernel system call ret