Guest User

foo.s

a guest
Aug 4th, 2013
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     .file   "foo.cpp"
  2.     .intel_syntax noprefix
  3.     .local  _ZStL8__ioinit
  4.     .comm   _ZStL8__ioinit,1,1
  5.     .text
  6.     .globl  _Z3foob
  7.     .type   _Z3foob, @function
  8. _Z3foob:
  9. .LFB969:
  10.     .cfi_startproc
  11.     push    rbp
  12.     .cfi_def_cfa_offset 16
  13.     .cfi_offset 6, -16
  14.     mov rbp, rsp
  15.     .cfi_def_cfa_register 6
  16.     mov eax, edi
  17.     mov BYTE PTR [rbp-4], al
  18.     pop rbp
  19.     .cfi_def_cfa 7, 8
  20.     ret
  21.     .cfi_endproc
  22. .LFE969:
  23.     .size   _Z3foob, .-_Z3foob
  24.     .section    .rodata
  25. .LC0:
  26.     .string "foo\n"
  27.     .text
  28.     .globl  main
  29.     .type   main, @function
  30. main:
  31. .LFB970:
  32.     .cfi_startproc
  33.     push    rbp
  34.     .cfi_def_cfa_offset 16
  35.     .cfi_offset 6, -16
  36.     mov rbp, rsp
  37.     .cfi_def_cfa_register 6
  38.     push    rbx
  39.     sub rsp, 8
  40.     .cfi_offset 3, -24
  41.     mov esi, OFFSET FLAT:.LC0
  42.     mov edi, OFFSET FLAT:_ZSt4cout
  43.     call    _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
  44.     mov rbx, rax
  45.     mov esi, OFFSET FLAT:.LC0
  46.     mov edi, OFFSET FLAT:_ZSt4cout
  47.     call    _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
  48.     mov rax, QWORD PTR [rax]
  49.     sub rax, 24
  50.     mov rax, QWORD PTR [rax]
  51.     add rax, rbx
  52.     mov rdi, rax
  53.     call    _ZNKSt9basic_iosIcSt11char_traitsIcEEntEv
  54.     movzx   eax, al
  55.     mov edi, eax
  56.     call    _Z3foob
  57.     mov eax, 0
  58.     add rsp, 8
  59.     pop rbx
  60.     pop rbp
  61.     .cfi_def_cfa 7, 8
  62.     ret
  63.     .cfi_endproc
  64. .LFE970:
  65.     .size   main, .-main
  66.     .type   _Z41__static_initialization_and_destruction_0ii, @function
  67. _Z41__static_initialization_and_destruction_0ii:
  68. .LFB976:
  69.     .cfi_startproc
  70.     push    rbp
  71.     .cfi_def_cfa_offset 16
  72.     .cfi_offset 6, -16
  73.     mov rbp, rsp
  74.     .cfi_def_cfa_register 6
  75.     sub rsp, 16
  76.     mov DWORD PTR [rbp-4], edi
  77.     mov DWORD PTR [rbp-8], esi
  78.     cmp DWORD PTR [rbp-4], 1
  79.     jne .L4
  80.     cmp DWORD PTR [rbp-8], 65535
  81.     jne .L4
  82.     mov edi, OFFSET FLAT:_ZStL8__ioinit
  83.     call    _ZNSt8ios_base4InitC1Ev
  84.     mov edx, OFFSET FLAT:__dso_handle
  85.     mov esi, OFFSET FLAT:_ZStL8__ioinit
  86.     mov edi, OFFSET FLAT:_ZNSt8ios_base4InitD1Ev
  87.     call    __cxa_atexit
  88. .L4:
  89.     leave
  90.     .cfi_def_cfa 7, 8
  91.     ret
  92.     .cfi_endproc
  93. .LFE976:
  94.     .size   _Z41__static_initialization_and_destruction_0ii, .-_Z41__static_initialization_and_destruction_0ii
  95.     .type   _GLOBAL__sub_I__Z3foob, @function
  96. _GLOBAL__sub_I__Z3foob:
  97. .LFB977:
  98.     .cfi_startproc
  99.     push    rbp
  100.     .cfi_def_cfa_offset 16
  101.     .cfi_offset 6, -16
  102.     mov rbp, rsp
  103.     .cfi_def_cfa_register 6
  104.     mov esi, 65535
  105.     mov edi, 1
  106.     call    _Z41__static_initialization_and_destruction_0ii
  107.     pop rbp
  108.     .cfi_def_cfa 7, 8
  109.     ret
  110.     .cfi_endproc
  111. .LFE977:
  112.     .size   _GLOBAL__sub_I__Z3foob, .-_GLOBAL__sub_I__Z3foob
  113.     .section    .init_array,"aw"
  114.     .align 8
  115.     .quad   _GLOBAL__sub_I__Z3foob
  116.     .hidden __dso_handle
  117.     .ident  "GCC: (Debian 4.7.2-5) 4.7.2"
  118.     .section    .note.GNU-stack,"",@progbits
Advertisement
Add Comment
Please, Sign In to add comment