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 ?

  • 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 '18 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. – Thorbjørn Ravn Andersen Sep 4 '18 at 10:57
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.

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

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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