Advertisement
kotoroshinoto

ASM of Hello World c++

Oct 28th, 2013
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     .file   "Omegaforte.cpp"
  2.     .local  _ZStL8__ioinit
  3.     .comm   _ZStL8__ioinit,1,1
  4.     .section    .rodata
  5. .LC0:
  6.     .string "Hello World!!!"
  7.     .text
  8.     .globl  main
  9.     .type   main, @function
  10. main:
  11. .LFB971:
  12.     .cfi_startproc
  13.     pushq   %rbp
  14.     .cfi_def_cfa_offset 16
  15.     .cfi_offset 6, -16
  16.     movq    %rsp, %rbp
  17.     .cfi_def_cfa_register 6
  18.     movl    $.LC0, %esi
  19.     movl    $_ZSt4cout, %edi
  20.     call    _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
  21.     movl    $_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_, %esi
  22.     movq    %rax, %rdi
  23.     call    _ZNSolsEPFRSoS_E
  24.     movl    $0, %eax
  25.     popq    %rbp
  26.     .cfi_def_cfa 7, 8
  27.     ret
  28.     .cfi_endproc
  29. .LFE971:
  30.     .size   main, .-main
  31.     .type   _Z41__static_initialization_and_destruction_0ii, @function
  32. _Z41__static_initialization_and_destruction_0ii:
  33. .LFB980:
  34.     .cfi_startproc
  35.     pushq   %rbp
  36.     .cfi_def_cfa_offset 16
  37.     .cfi_offset 6, -16
  38.     movq    %rsp, %rbp
  39.     .cfi_def_cfa_register 6
  40.     subq    $16, %rsp
  41.     movl    %edi, -4(%rbp)
  42.     movl    %esi, -8(%rbp)
  43.     cmpl    $1, -4(%rbp)
  44.     jne .L3
  45.     cmpl    $65535, -8(%rbp)
  46.     jne .L3
  47.     movl    $_ZStL8__ioinit, %edi
  48.     call    _ZNSt8ios_base4InitC1Ev
  49.     movl    $__dso_handle, %edx
  50.     movl    $_ZStL8__ioinit, %esi
  51.     movl    $_ZNSt8ios_base4InitD1Ev, %edi
  52.     call    __cxa_atexit
  53. .L3:
  54.     leave
  55.     .cfi_def_cfa 7, 8
  56.     ret
  57.     .cfi_endproc
  58. .LFE980:
  59.     .size   _Z41__static_initialization_and_destruction_0ii, .-_Z41__static_initialization_and_destruction_0ii
  60.     .type   _GLOBAL__sub_I_main, @function
  61. _GLOBAL__sub_I_main:
  62. .LFB981:
  63.     .cfi_startproc
  64.     pushq   %rbp
  65.     .cfi_def_cfa_offset 16
  66.     .cfi_offset 6, -16
  67.     movq    %rsp, %rbp
  68.     .cfi_def_cfa_register 6
  69.     movl    $65535, %esi
  70.     movl    $1, %edi
  71.     call    _Z41__static_initialization_and_destruction_0ii
  72.     popq    %rbp
  73.     .cfi_def_cfa 7, 8
  74.     ret
  75.     .cfi_endproc
  76. .LFE981:
  77.     .size   _GLOBAL__sub_I_main, .-_GLOBAL__sub_I_main
  78.     .section    .init_array,"aw"
  79.     .align 8
  80.     .quad   _GLOBAL__sub_I_main
  81.     .hidden __dso_handle
  82.     .ident  "GCC: (Ubuntu/Linaro 4.8.1-10ubuntu8) 4.8.1"
  83.     .section    .note.GNU-stack,"",@progbits
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement