Hello
it is possible to decompile a program to c?
It's possible to generate a C program which would behave the same as the
program you're decompiling; I believe that some people may have even
created such things. However, the output will, in general, be nearly
unintelligible. That's because the process of compiling a C program
tends to discard a large portion of the information needed for a human
to understand the program. First of all, it drops all of the comments.
Secondly, identifiers with internal linkage or no linkage (which is the
vast majority the identifiers in your program) are, in effect, converted
into other forms that are meaningful only to the hardware. Any
information stored in the identifier's spelling is just plain lost.
Finally, most modern compilers optimize your code by rearranging your
code extensively. It's possible to write C code that does the same thing
as the optimized code, but it's generally not possible to reconstruct
what the original code looked like before optimization.