Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .file "vectores.c"
- .section .rodata.str1.8,"aMS",@progbits,1
- .align 8
- .LC0:
- .string "Faltan n\302\272 componentes del vector"
- .align 8
- .LC1:
- .string "Error en la reserva de espacio para los vectores"
- .align 8
- .LC4:
- .string "Tiempo(seg.):%11.9f\t / Tama\303\261o Vectores:%u\t/ V1[0]+V2[0]=V3[0](%8.6f+%8.6f=%8.6f) V1[%d]+V2[%d]=V3[%d](%8.6f+%8.6f=%8.6f) \n"
- .section .text.startup,"ax",@progbits
- .p2align 4,,15
- .globl main
- .type main, @function
- main:
- .LFB34:
- .cfi_startproc
- pushq %r15
- .cfi_def_cfa_offset 16
- .cfi_offset 15, -16
- pushq %r14
- .cfi_def_cfa_offset 24
- .cfi_offset 14, -24
- pushq %r13
- .cfi_def_cfa_offset 32
- .cfi_offset 13, -32
- pushq %r12
- .cfi_def_cfa_offset 40
- .cfi_offset 12, -40
- pushq %rbp
- .cfi_def_cfa_offset 48
- .cfi_offset 6, -48
- pushq %rbx
- .cfi_def_cfa_offset 56
- .cfi_offset 3, -56
- subq $40, %rsp
- .cfi_def_cfa_offset 96
- cmpl $1, %edi
- jle .L20
- movq 8(%rsi), %rdi
- movl $10, %edx
- xorl %esi, %esi
- call strtol
- movl %eax, %r15d
- movq %rax, %r13
- movl %eax, %r12d
- leaq 0(,%r15,8), %r14
- movq %r14, %rdi
- call malloc
- movq %r14, %rdi
- movq %rax, %rbx
- call malloc
- movq %r14, %rdi
- movq %rax, %rbp
- call malloc
- testq %rbp, %rbp
- movq %rax, %r14
- je .L3
- testq %rbx, %rbx
- je .L3
- testq %rax, %rax
- je .L3
- testl %r13d, %r13d
- .p2align 4,,2
- je .L21
- cvtsi2sdq %r15, %xmm1
- xorl %ecx, %ecx
- movsd .LC2(%rip), %xmm3
- mulsd %xmm3, %xmm1
- .p2align 4,,10
- .p2align 3
- .L8:
- cvtsi2sd %ecx, %xmm0
- mulsd %xmm3, %xmm0
- movapd %xmm0, %xmm2
- addsd %xmm1, %xmm2
- movsd %xmm2, (%rbx,%rcx,8)
- movapd %xmm1, %xmm2
- subsd %xmm0, %xmm2
- movsd %xmm2, 0(%rbp,%rcx,8)
- addq $1, %rcx
- cmpl %ecx, %r12d
- ja .L8
- movq %rsp, %rsi
- xorl %edi, %edi
- call clock_gettime
- xorl %ecx, %ecx
- .p2align 4,,10
- .p2align 3
- .L9:
- movsd (%rbx,%rcx,8), %xmm0
- addsd 0(%rbp,%rcx,8), %xmm0
- movsd %xmm0, (%r14,%rcx,8)
- addq $1, %rcx
- cmpl %ecx, %r12d
- ja .L9
- .L10:
- leaq 16(%rsp), %rsi
- xorl %edi, %edi
- call clock_gettime
- movq 16(%rsp), %rdx
- subq (%rsp), %rdx
- leal -1(%r13), %ecx
- movsd (%r14), %xmm3
- movl $.LC4, %esi
- movl %ecx, %eax
- movsd 0(%rbp), %xmm2
- movsd (%r14,%rax,8), %xmm6
- movl %ecx, %r9d
- cvtsi2sdq %rdx, %xmm0
- movq 24(%rsp), %rdx
- subq 8(%rsp), %rdx
- movsd 0(%rbp,%rax,8), %xmm5
- movsd (%rbx,%rax,8), %xmm4
- movl %ecx, %r8d
- movl $1, %edi
- movl $7, %eax
- cvtsi2sdq %rdx, %xmm1
- movl %r13d, %edx
- divsd .LC3(%rip), %xmm1
- addsd %xmm1, %xmm0
- movsd (%rbx), %xmm1
- call __printf_chk
- movq %rbx, %rdi
- call free
- movq %rbp, %rdi
- call free
- movq %r14, %rdi
- call free
- addq $40, %rsp
- .cfi_remember_state
- .cfi_def_cfa_offset 56
- xorl %eax, %eax
- popq %rbx
- .cfi_def_cfa_offset 48
- popq %rbp
- .cfi_def_cfa_offset 40
- popq %r12
- .cfi_def_cfa_offset 32
- popq %r13
- .cfi_def_cfa_offset 24
- popq %r14
- .cfi_def_cfa_offset 16
- popq %r15
- .cfi_def_cfa_offset 8
- ret
- .L21:
- .cfi_restore_state
- movq %rsp, %rsi
- xorl %edi, %edi
- call clock_gettime
- jmp .L10
- .L3:
- movl $.LC1, %edi
- call puts
- movl $-2, %edi
- call exit
- .L20:
- movl $.LC0, %edi
- call puts
- orl $-1, %edi
- call exit
- .cfi_endproc
- .LFE34:
- .size main, .-main
- .section .rodata.cst8,"aM",@progbits,8
- .align 8
- .LC2:
- .long 2576980378
- .long 1069128089
- .align 8
- .LC3:
- .long 0
- .long 1104006501
- .ident "GCC: (Ubuntu/Linaro 4.7.3-2ubuntu1~12.04) 4.7.3"
- .section .note.GNU-stack,"",@progbits
Advertisement
Add Comment
Please, Sign In to add comment