Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is there any hope of a decompiler that would convert an executable program into C/C++ code?

0
Posted

Is there any hope of a decompiler that would convert an executable program into C/C++ code?

0

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

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.