Skip to content

Instantly share code, notes, and snippets.

@dbb
Created September 2, 2011 06:19
Show Gist options
  • Save dbb/1188017 to your computer and use it in GitHub Desktop.
Save dbb/1188017 to your computer and use it in GitHub Desktop.
.file "hwo3.c"
.section .rodata.str1.1,"aMS",@progbits,1
.LC0:
.string "hello, world"
.section .text.startup,"ax",@progbits
.p2align 4,,15
.globl main
.type main, @function
main:
.LFB11:
.cfi_startproc
subq $8, %rsp
.cfi_def_cfa_offset 16
movl $.LC0, %edi
call puts
xorl %eax, %eax
addq $8, %rsp
.cfi_def_cfa_offset 8
ret
.cfi_endproc
.LFE11:
.size main, .-main
.ident "GCC: (Debian 4.6.1-4) 4.6.1"
.section .note.GNU-stack,"",@progbits
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment