Skip to content

Instantly share code, notes, and snippets.

@brycelelbach
Created October 19, 2010 20:41
Show Gist options
  • Select an option

  • Save brycelelbach/635066 to your computer and use it in GitHub Desktop.

Select an option

Save brycelelbach/635066 to your computer and use it in GitHub Desktop.
.file "unroll_for.cpp"
.text
.globl main
.type main, @function
main:
.LFB12:
.cfi_startproc
subq $56, %rsp
.cfi_def_cfa_offset 64
movq %rsp, %rax
leaq 34(%rsp), %rdx
.L2:
movb $102, (%rax)
addq $1, %rax
cmpq %rdx, %rax
jne .L2
movb $0, 34(%rsp)
movq %rsp, %rdi
call puts
movl $0, %eax
addq $56, %rsp
.cfi_def_cfa_offset 8
ret
.cfi_endproc
.LFE12:
.size main, .-main
.ident "GCC: (Debian 4.5.0-6) 4.5.1 20100617 (prerelease)"
.section .note.GNU-stack,"",@progbits
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment