Advertisement
sehe

Untitled

Dec 2nd, 2011
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.15 KB | None | 0 0
  1. .file "test.cpp"
  2. .section .rodata.str1.1,"aMS",@progbits,1
  3. .LC0:
  4. .string "not a palindrome"
  5. .section .text.startup,"ax",@progbits
  6. .p2align 4,,15
  7. .globl main
  8. .type main, @function
  9. main:
  10. .LFB785:
  11. .cfi_startproc
  12. pushq %rbx
  13. .cfi_def_cfa_offset 16
  14. .cfi_offset 3, -16
  15. movl $.LC0, %esi
  16. movl $1, %ebx
  17. subq $16, %rsp
  18. .cfi_def_cfa_offset 32
  19. leaq 15(%rsp), %rdx
  20. movq %rsp, %rdi
  21. call _ZNSsC1EPKcRKSaIcE
  22. movq (%rsp), %rax
  23. movq -24(%rax), %rdx
  24. movq %rdx, %rsi
  25. shrq %rsi
  26. addq %rax, %rsi
  27. cmpq %rsi, %rax
  28. je .L4
  29. addq %rax, %rdx
  30. xorb %bl, %bl
  31. movzbl -1(%rdx), %ecx
  32. cmpb %cl, (%rax)
  33. je .L5
  34. jmp .L4
  35. .p2align 4,,10
  36. .p2align 3
  37. .L6:
  38. subq $1, %rdx
  39. movzbl -1(%rdx), %ebx
  40. cmpb %bl, 1(%rax)
  41. jne .L9
  42. movq %rcx, %rax
  43. .L5:
  44. leaq 1(%rax), %rcx
  45. cmpq %rcx, %rsi
  46. jne .L6
  47. movl $1, %ebx
  48. .L4:
  49. movq %rsp, %rdi
  50. call _ZNSsD1Ev
  51. addq $16, %rsp
  52. .cfi_remember_state
  53. .cfi_def_cfa_offset 16
  54. movl %ebx, %eax
  55. popq %rbx
  56. .cfi_def_cfa_offset 8
  57. ret
  58. .L9:
  59. .cfi_restore_state
  60. xorl %ebx, %ebx
  61. jmp .L4
  62. .cfi_endproc
  63. .LFE785:
  64. .size main, .-main
  65. .weakref _ZL20__gthrw_pthread_oncePiPFvvE,pthread_once
  66. .weakref _ZL27__gthrw_pthread_getspecificj,pthread_getspecific
  67. .weakref _ZL27__gthrw_pthread_setspecificjPKv,pthread_setspecific
  68. .weakref _ZL22__gthrw_pthread_createPmPK14pthread_attr_tPFPvS3_ES3_,pthread_create
  69. .weakref _ZL20__gthrw_pthread_joinmPPv,pthread_join
  70. .weakref _ZL21__gthrw_pthread_equalmm,pthread_equal
  71. .weakref _ZL20__gthrw_pthread_selfv,pthread_self
  72. .weakref _ZL22__gthrw_pthread_detachm,pthread_detach
  73. .weakref _ZL22__gthrw_pthread_cancelm,pthread_cancel
  74. .weakref _ZL19__gthrw_sched_yieldv,sched_yield
  75. .weakref _ZL26__gthrw_pthread_mutex_lockP15pthread_mutex_t,pthread_mutex_lock
  76. .weakref _ZL29__gthrw_pthread_mutex_trylockP15pthread_mutex_t,pthread_mutex_trylock
  77. .weakref _ZL31__gthrw_pthread_mutex_timedlockP15pthread_mutex_tPK8timespec,pthread_mutex_timedlock
  78. .weakref _ZL28__gthrw_pthread_mutex_unlockP15pthread_mutex_t,pthread_mutex_unlock
  79. .weakref _ZL26__gthrw_pthread_mutex_initP15pthread_mutex_tPK19pthread_mutexattr_t,pthread_mutex_init
  80. .weakref _ZL29__gthrw_pthread_mutex_destroyP15pthread_mutex_t,pthread_mutex_destroy
  81. .weakref _ZL30__gthrw_pthread_cond_broadcastP14pthread_cond_t,pthread_cond_broadcast
  82. .weakref _ZL27__gthrw_pthread_cond_signalP14pthread_cond_t,pthread_cond_signal
  83. .weakref _ZL25__gthrw_pthread_cond_waitP14pthread_cond_tP15pthread_mutex_t,pthread_cond_wait
  84. .weakref _ZL30__gthrw_pthread_cond_timedwaitP14pthread_cond_tP15pthread_mutex_tPK8timespec,pthread_cond_timedwait
  85. .weakref _ZL28__gthrw_pthread_cond_destroyP14pthread_cond_t,pthread_cond_destroy
  86. .weakref _ZL26__gthrw_pthread_key_createPjPFvPvE,pthread_key_create
  87. .weakref _ZL26__gthrw_pthread_key_deletej,pthread_key_delete
  88. .weakref _ZL30__gthrw_pthread_mutexattr_initP19pthread_mutexattr_t,pthread_mutexattr_init
  89. .weakref _ZL33__gthrw_pthread_mutexattr_settypeP19pthread_mutexattr_ti,pthread_mutexattr_settype
  90. .weakref _ZL33__gthrw_pthread_mutexattr_destroyP19pthread_mutexattr_t,pthread_mutexattr_destroy
  91. .ident "GCC: (Ubuntu 4.6.0-3~ppa1) 4.6.1 20110409 (prerelease)"
  92. .section .note.GNU-stack,"",@progbits
  93.  
  94.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement