Skip to content
Hagen Paul Pfeifer edited this page Apr 24, 2014 · 4 revisions

Analyzer

Instruction Analyzer

Output

Instruction and Opcode Analyzer - (C) 2014
Program Instructions Analyses:
General Information:
    Instructions: 70

Detailed Analysis:
  Instruction  |  Count   |    Category  |    Length (avg, min, max)
--------------------------------------------------------------------
            mov       2046          MOVE        4.0,  2,  9
          callq        368   BRANCH_JUMP        5.0,  2,  5
           jmpq        202   BRANCH_JUMP        5.2,  2,  6
            lea        127          MOVE        5.9,  3,  8
           test        109    COMPARISON        2.2,  2,  3
            jmp        107   BRANCH_JUMP        2.0,  2,  2
            sub        106 ARITHMETIC_LO        3.7,  2,  7
             je         96   BRANCH_JUMP        2.3,  2,  6
            jne         87   BRANCH_JUMP        2.3,  2,  6
           push         78         STORE        1.1,  1,  2
           movl         69          MOVE        7.4,  6, 10
           retq         62   BRANCH_JUMP        1.0,  1,  1

Function Instruction Analyzer

In contrast to Instruction Analyer statistics are generated and printed per function.

machine-code-analyzer function-instruction-analyzer path/binary

To limit output for some functions:

machine-code-analyzer function-instruction-analyzer --function foobar path/binary
Clone this wiki locally