aboutsummaryrefslogtreecommitdiffstats
path: root/callocing.s
diff options
context:
space:
mode:
Diffstat (limited to 'callocing.s')
-rw-r--r--callocing.s56
1 files changed, 0 insertions, 56 deletions
diff --git a/callocing.s b/callocing.s
deleted file mode 100644
index c99607d..0000000
--- a/callocing.s
+++ /dev/null
@@ -1,56 +0,0 @@
- .file "callocing.c"
- .section .rodata
-.LC0:
- .string "%d: %d\n"
-.LC1:
- .string "\n%d\n"
- .text
- .globl main
- .type main, @function
-main:
-.LFB2:
- .cfi_startproc
- pushq %rbp
- .cfi_def_cfa_offset 16
- .cfi_offset 6, -16
- movq %rsp, %rbp
- .cfi_def_cfa_register 6
- subq $16, %rsp
- movl $1073741824, %edi
- call malloc
- movq %rax, -16(%rbp)
- movl $0, -4(%rbp)
- jmp .L2
-.L3:
- movl -4(%rbp), %eax
- cltq
- leaq 0(,%rax,4), %rdx
- movq -16(%rbp), %rax
- addq %rdx, %rax
- movl (%rax), %edx
- movl -4(%rbp), %eax
- movl %eax, %esi
- movl $.LC0, %edi
- movl $0, %eax
- call printf
- addl $1, -4(%rbp)
-.L2:
- cmpl $99, -4(%rbp)
- jle .L3
- movq -16(%rbp), %rax
- movq %rax, %rsi
- movl $.LC1, %edi
- movl $0, %eax
- call printf
- movq -16(%rbp), %rax
- movq %rax, %rdi
- call free
- movl $0, %eax
- leave
- .cfi_def_cfa 7, 8
- ret
- .cfi_endproc
-.LFE2:
- .size main, .-main
- .ident "GCC: (GNU) 4.8.2 20131219 (prerelease)"
- .section .note.GNU-stack,"",@progbits