Advertisement
Guest User

output

a guest
May 10th, 2018
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MPASM 1.85 KB | None | 0 0
  1.     .text
  2.     .intel_syntax noprefix
  3.     .file   "fmtstr.cpp"
  4.     .globl  main                    # -- Begin function main
  5.     .p2align    4, 0x90
  6.     .type   main,@function
  7. main:                                   # @main
  8.     .cfi_startproc
  9. # %bb.0:                                # %entry
  10.     push    rbp
  11.     .cfi_def_cfa_offset 16
  12.     .cfi_offset rbp, -16
  13.     mov rbp, rsp
  14.     .cfi_def_cfa_register rbp
  15.     mov edi, offset .L.str
  16.     mov esi, offset _ZZ4mainE4str1
  17.     xor eax, eax
  18.     call    printf
  19.     mov edi, offset .L.str.1
  20.     mov esi, offset _ZZ4mainE4str2
  21.     xor eax, eax
  22.     call    printf
  23.     mov edi, offset .L.str.2
  24.     mov esi, offset _ZZ4mainE4str4
  25.     xor eax, eax
  26.     call    printf
  27.     mov edi, offset .L.str.3
  28.     mov esi, offset _ZZ4mainE4strC
  29.     xor eax, eax
  30.     call    printf
  31.     xor eax, eax
  32.     pop rbp
  33.     ret
  34. .Lfunc_end0:
  35.     .size   main, .Lfunc_end0-main
  36.     .cfi_endproc
  37.                                         # -- End function
  38.     .type   _ZZ4mainE4str1,@object  # @_ZZ4mainE4str1
  39.     .section    .rodata,"a",@progbits
  40. _ZZ4mainE4str1:
  41.     .asciz  "hello"
  42.     .size   _ZZ4mainE4str1, 6
  43.  
  44.     .type   _ZZ4mainE4str2,@object  # @_ZZ4mainE4str2
  45. _ZZ4mainE4str2:
  46.     .asciz  "hellohello"
  47.     .size   _ZZ4mainE4str2, 11
  48.  
  49.     .type   _ZZ4mainE4str4,@object  # @_ZZ4mainE4str4
  50. _ZZ4mainE4str4:
  51.     .asciz  "hellohellohellohello"
  52.     .size   _ZZ4mainE4str4, 21
  53.  
  54.     .type   _ZZ4mainE4strC,@object  # @_ZZ4mainE4strC
  55. _ZZ4mainE4strC:
  56.     .asciz  "helloworld"
  57.     .size   _ZZ4mainE4strC, 11
  58.  
  59.     .type   .L.str,@object          # @.str
  60.     .section    .rodata.str1.1,"aMS",@progbits,1
  61. .L.str:
  62.     .asciz  "str1: <%s>\n"
  63.     .size   .L.str, 12
  64.  
  65.     .type   .L.str.1,@object        # @.str.1
  66. .L.str.1:
  67.     .asciz  "str2: <%s>\n"
  68.     .size   .L.str.1, 12
  69.  
  70.     .type   .L.str.2,@object        # @.str.2
  71. .L.str.2:
  72.     .asciz  "str4: <%s>\n"
  73.     .size   .L.str.2, 12
  74.  
  75.     .type   .L.str.3,@object        # @.str.3
  76. .L.str.3:
  77.     .asciz  "strC: <%s>\n"
  78.     .size   .L.str.3, 12
  79.  
  80.  
  81.     .ident  "clang version 7.0.0 "
  82.     .section    ".note.GNU-stack","",@progbits
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement