Created
July 11, 2014 20:44
-
-
Save halgari/83a6b40aef1d21d0e618 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.section __TEXT,__text,regular,pure_instructions | |
.globl _main | |
.align 4, 0x90 | |
_main: | |
.cfi_startproc | |
pushq %r15 | |
Ltmp4: | |
.cfi_def_cfa_offset 16 | |
pushq %r14 | |
Ltmp5: | |
.cfi_def_cfa_offset 24 | |
pushq %rbx | |
Ltmp6: | |
.cfi_def_cfa_offset 32 | |
Ltmp7: | |
.cfi_offset %rbx, -32 | |
Ltmp8: | |
.cfi_offset %r14, -24 | |
Ltmp9: | |
.cfi_offset %r15, -16 | |
movl $8192, %edi | |
callq _malloc | |
movq %rax, %rbx | |
callq _GC_init | |
movq $1, 64(%rbx) | |
movl $16, %edi | |
callq _GC_malloc | |
movq $3, (%rax) | |
leaq Ltmp10(%rip), %rcx | |
movq %rcx, 8(%rax) | |
movq %rax, 72(%rbx) | |
movq $1, 80(%rbx) | |
movq 72(%rbx), %rax | |
movq %rax, 88(%rbx) | |
leaq _const_long_42(%rip), %r15 | |
jmp LBB0_1 | |
.align 4, 0x90 | |
LBB0_3: | |
movq %r15, 88(%rbx) | |
movq _const_long_42+8(%rip), %rdi | |
callq _putchar | |
movq %rax, %r14 | |
movl $16, %edi | |
callq _GC_malloc | |
movq $2, (%rax) | |
movq %r14, 8(%rax) | |
movq %rax, 88(%rbx) | |
movq 72(%rbx), %rax | |
movq %rax, 88(%rbx) | |
movq %rax, 72(%rbx) | |
movq $1, 80(%rbx) | |
movq 72(%rbx), %rax | |
movq %rax, 88(%rbx) | |
Ltmp10: | |
LBB0_1: | |
movq 80(%rbx), %rax | |
movq %rax, 88(%rbx) | |
cmpl $1, %eax | |
je LBB0_3 | |
popq %rbx | |
popq %r14 | |
popq %r15 | |
retq | |
.cfi_endproc | |
.section __DATA,__data | |
.globl _const_long_42 | |
.align 3 | |
_const_long_42: | |
.quad 0 | |
.quad 42 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment