Advertisement
lazpeng

rustc.asm

Jul 21st, 2016
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     .text
  2.     .file   "testes.0.rs"
  3.     .section    .text._ZN6testes7fib_rec17h69930bf13e288957E,"ax",@progbits
  4.     .align  16, 0x90
  5.     .type   _ZN6testes7fib_rec17h69930bf13e288957E,@function
  6. _ZN6testes7fib_rec17h69930bf13e288957E:
  7.     .cfi_startproc
  8.     pushq   %r14
  9. .Ltmp0:
  10.     .cfi_def_cfa_offset 16
  11.     pushq   %rbx
  12. .Ltmp1:
  13.     .cfi_def_cfa_offset 24
  14.     pushq   %rax
  15. .Ltmp2:
  16.     .cfi_def_cfa_offset 32
  17. .Ltmp3:
  18.     .cfi_offset %rbx, -24
  19. .Ltmp4:
  20.     .cfi_offset %r14, -16
  21.     movq    %rdi, %rbx
  22.     cmpq    $2, %rbx
  23.     jae .LBB0_1
  24.     movq    %rbx, %rax
  25.     jmp .LBB0_3
  26. .LBB0_1:
  27.     leaq    -1(%rbx), %rdi
  28.     callq   _ZN6testes7fib_rec17h69930bf13e288957E
  29.     movq    %rax, %r14
  30.     addq    $-2, %rbx
  31.     movq    %rbx, %rdi
  32.     callq   _ZN6testes7fib_rec17h69930bf13e288957E
  33.     addq    %r14, %rax
  34. .LBB0_3:
  35.     addq    $8, %rsp
  36.     popq    %rbx
  37.     popq    %r14
  38.     retq
  39. .Lfunc_end0:
  40.     .size   _ZN6testes7fib_rec17h69930bf13e288957E, .Lfunc_end0-_ZN6testes7fib_rec17h69930bf13e288957E
  41.     .cfi_endproc
  42.  
  43.     .section    .text._ZN6testes4main17ha15066f3a5053d86E,"ax",@progbits
  44.     .align  16, 0x90
  45.     .type   _ZN6testes4main17ha15066f3a5053d86E,@function
  46. _ZN6testes4main17ha15066f3a5053d86E:
  47.     .cfi_startproc
  48.     subq    $72, %rsp
  49. .Ltmp5:
  50.     .cfi_def_cfa_offset 80
  51.     movl    $45, %edi
  52.     callq   _ZN6testes7fib_rec17h69930bf13e288957E
  53.     movq    %rax, (%rsp)
  54.     movq    _ZN4core3fmt3num46_$LT$impl$u20$fmt..Display$u20$for$u20$u64$GT$3fmt17h48f5c9f98ed49fdbE@GOTPCREL(%rip), %rax
  55.     movq    %rax, 16(%rsp)
  56.     leaq    (%rsp), %rax
  57.     movq    %rax, 8(%rsp)
  58.     leaq    ref7299(%rip), %rax
  59.     movq    %rax, 24(%rsp)
  60.     movq    $2, 32(%rsp)
  61.     xorps   %xmm0, %xmm0
  62.     movups  %xmm0, 40(%rsp)
  63.     leaq    8(%rsp), %rax
  64.     movq    %rax, 56(%rsp)
  65.     movq    $1, 64(%rsp)
  66.     leaq    24(%rsp), %rdi
  67.     callq   _ZN3std2io5stdio6_print17h1efac97bf1087802E@PLT
  68.     addq    $72, %rsp
  69.     retq
  70. .Lfunc_end1:
  71.     .size   _ZN6testes4main17ha15066f3a5053d86E, .Lfunc_end1-_ZN6testes4main17ha15066f3a5053d86E
  72.     .cfi_endproc
  73.  
  74.     .section    .text.main,"ax",@progbits
  75.     .globl  main
  76.     .align  16, 0x90
  77.     .type   main,@function
  78. main:
  79.     .cfi_startproc
  80.     movq    %rsi, %rax
  81.     movq    %rdi, %rcx
  82.     leaq    _ZN6testes4main17ha15066f3a5053d86E(%rip), %rdi
  83.     movq    %rcx, %rsi
  84.     movq    %rax, %rdx
  85.     jmp _ZN3std2rt10lang_start17hbcefdc316c2fbd45E@PLT
  86. .Lfunc_end2:
  87.     .size   main, .Lfunc_end2-main
  88.     .cfi_endproc
  89.  
  90.     .type   str7297,@object
  91.     .section    .rodata.str7297,"a",@progbits
  92. str7297:
  93.     .size   str7297, 0
  94.  
  95.     .type   str7298,@object
  96.     .section    .rodata.str7298,"a",@progbits
  97. str7298:
  98.     .byte   10
  99.     .size   str7298, 1
  100.  
  101.     .type   ref7299,@object
  102.     .section    .data.rel.ro.ref7299,"aw",@progbits
  103.     .align  8
  104. ref7299:
  105.     .quad   str7297
  106.     .quad   0
  107.     .quad   str7298
  108.     .quad   1
  109.     .size   ref7299, 32
  110.  
  111.  
  112.     .section    ".note.GNU-stack","",@progbits
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement