Is there any hope of a decompiler that would convert an executable program into C/C++ code?
This FAQ answer is an excerpt from SNIPPETS by Bob Stout: Don’t hold your breath. Think about it… For a decompiler to work properly, either 1) every compiler would have to generate substantially identical code, even with full optimization turned on, or 2) it would have to recognize the individual output of every compiler’s code generator. If the first case were to be correct, there would be no more need for compiler benchmarks since every one would work the same. For the second case to be true would require in immensely complex program that had to change with every new compiler release. OK, so what about specific decompilers for specific compilers – say a decompiler designed to only work on code generated by, say, BC++ 4.5? This gets us right back to the optimization issue. Code written for clarity and understandability is often inefficient. Code written for maximum performance (speed or size) is often cryptic (at best!
Related Questions
- I want to convert my PHP program to a binary executable. The syntax of PHP is near that of C++, why using Scriptol rather than converting directly the PHP source to C++?
- Is there any hope of a decompiler that would convert an executable program into C/C++ code?
- Does the HOPE Scholarship or PACT Program apply?