Disassemble binary.

vital.fadeev vital.fadeev at gmail.com
Tue May 8 12:07:53 UTC 2018


example:

./dasm opcode.o opcode.op_eq_s

Disassembly of section .text._D6opcode7op_eq_sFZi:
0000000000000000 <_D6opcode7op_eq_sFZi>:
    0:   55                      push   %rbp
    1:   48 8b ec                mov    %rsp,%rbp
    4:   48 39 d1                cmp    %rdx,%rcx
    7:   75 0a                   jne    13 
<_D6opcode7op_eq_sFZi+0x13>
    9:   48 85 c9                test   %rcx,%rcx
    c:   74 0c                   je     1a 
<_D6opcode7op_eq_sFZi+0x1a>
    e:   fc                      cld
    f:   f3 a6                   repz cmpsb %es:(%rdi),%ds:(%rsi)
   11:   74 07                   je     1a 
<_D6opcode7op_eq_sFZi+0x1a>
   13:   b8 00 00 00 00          mov    $0x0,%eax
   18:   eb 05                   jmp    1f 
<_D6opcode7op_eq_sFZi+0x1f>
   1a:   b8 01 00 00 00          mov    $0x1,%eax
   1f:   90                      nop
   20:   5d                      pop    %rbp
   21:   c3                      retq
         ...



More information about the Digitalmars-d mailing list