Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .text
- .intel_syntax noprefix
- .file "fmtstr.cpp"
- .globl main # -- Begin function main
- .p2align 4, 0x90
- .type main,@function
- main: # @main
- .cfi_startproc
- # %bb.0: # %entry
- push rbp
- .cfi_def_cfa_offset 16
- .cfi_offset rbp, -16
- mov rbp, rsp
- .cfi_def_cfa_register rbp
- mov edi, offset .L.str
- mov esi, offset _ZZ4mainE4str1
- xor eax, eax
- call printf
- mov edi, offset .L.str.1
- mov esi, offset _ZZ4mainE4str2
- xor eax, eax
- call printf
- mov edi, offset .L.str.2
- mov esi, offset _ZZ4mainE4str4
- xor eax, eax
- call printf
- mov edi, offset .L.str.3
- mov esi, offset _ZZ4mainE4strC
- xor eax, eax
- call printf
- xor eax, eax
- pop rbp
- ret
- .Lfunc_end0:
- .size main, .Lfunc_end0-main
- .cfi_endproc
- # -- End function
- .type _ZZ4mainE4str1,@object # @_ZZ4mainE4str1
- .section .rodata,"a",@progbits
- _ZZ4mainE4str1:
- .asciz "hello"
- .size _ZZ4mainE4str1, 6
- .type _ZZ4mainE4str2,@object # @_ZZ4mainE4str2
- _ZZ4mainE4str2:
- .asciz "hellohello"
- .size _ZZ4mainE4str2, 11
- .type _ZZ4mainE4str4,@object # @_ZZ4mainE4str4
- _ZZ4mainE4str4:
- .asciz "hellohellohellohello"
- .size _ZZ4mainE4str4, 21
- .type _ZZ4mainE4strC,@object # @_ZZ4mainE4strC
- _ZZ4mainE4strC:
- .asciz "helloworld"
- .size _ZZ4mainE4strC, 11
- .type .L.str,@object # @.str
- .section .rodata.str1.1,"aMS",@progbits,1
- .L.str:
- .asciz "str1: <%s>\n"
- .size .L.str, 12
- .type .L.str.1,@object # @.str.1
- .L.str.1:
- .asciz "str2: <%s>\n"
- .size .L.str.1, 12
- .type .L.str.2,@object # @.str.2
- .L.str.2:
- .asciz "str4: <%s>\n"
- .size .L.str.2, 12
- .type .L.str.3,@object # @.str.3
- .L.str.3:
- .asciz "strC: <%s>\n"
- .size .L.str.3, 12
- .ident "clang version 7.0.0 "
- .section ".note.GNU-stack","",@progbits
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement