0

Ida has a feature which generates pseudo code from assembly.

Is there a tool under Linux that make the same job, from objdump output for example ?

2
  • There is a utility called snowman, but I'd recommend against it. The biggest hurdle, I guess, for any ASM to C converter are the calling conventions.
    – Twifty
    Sep 3, 2018 at 20:18
  • I believe the general consensus is that raw machine code has too much information discarded to allow correctly deriving e.g. C code in all cases. If you know the compiler generating the machine code you are looking at intimately, you may possibly use pattern recognition to figure out which part of the compiler generated each instruction and get more information that way. In some cases that may be enough. Sep 4, 2018 at 10:57

1 Answer 1

2

No.

IDA generates C-like pseudo code from object code. That is, the input to the decompiler is object code - not assembly language, which is represented in ASCII - and the output is a high-level language approximation.

Note that assembly language is a human-readable mnemonic representation of object code operation codes (opcodes) and operands.

Since decompilation is a major technical challenge, no Linux utilities have been developed to accomplish decompilation.

2
  • 1
    In fact what i need is to replace esp offsets by a local variable name
    – Bob5421
    Aug 4, 2018 at 9:30
  • 4
    @Bob5421 then you should make a question about your real problem
    – Igor Skochinsky
    Aug 4, 2018 at 10:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.