1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
.file "sim.cpp"
.text
.globl main
.type main, @function
main:
.LFB0:
.cfi_startproc
.cfi_personality 0x3,__gxx_personality_v0
pushq %rbp
.cfi_def_cfa_offset 16
movq %rsp, %rbp
.cfi_offset 6, -16
.cfi_def_cfa_register 6
subq $16, %rsp
movl $20, -4(%rbp) ;$20 is moved onto the stack
movl $4, %edi
call _Znwm ;here allocates memory
movq %rax, %rdx ;move the address of that memory to %rdx
movl $10, (%rdx ) ;move $10 to (%rdx), ie, that memory
movq %rax, -16(%rbp)
movq -16(%rbp), %rax
movq %rax, %rdi
call _ZdlPv
movl $0, %eax
leave
ret
.cfi_endproc
.LFE0:
.size main, .-main
.ident "GCC: (Ubuntu 4.4.3-4ubuntu5) 4.4.3"
.section .note.GNU-stack,"",@progbits
|