Link to home
Start Free TrialLog in
Avatar of tripled
tripled

asked on

c++ decompiler

is there a c++ decomplier ie a program that coverts an .exe filed complied in the c langauge back to c code ? if so where can I get a copy ? or is there another way of doing the same task ?
Avatar of hotsextoy
hotsextoy

hmmm, i'm not aware of any out there, if there is it could be dangerous...or if there is it's not very accurate, cause there are so many compilers out there and they all compile to assembly code, differently, that's why some c++ compilers produce faster executables than others while some produce safer code that others...in other words, no i don't think there is, but there are some out there that will decompile to assembly code...so if i were u i'd brush up on complex assembly language routines, cause that's all u'll get...sorry
                                                                                                              Pat b

ASKER CERTIFIED SOLUTION
Avatar of galkin
galkin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Actually, I have heard of dissasemblers that produce high-level language output, like C or C++ output.  I have never used one though and I can't give you any product names.  However, their ouput is likely to be very poor.  Unless debug symbols are included in the program, it will not be able to provide the original names for variables, procedures, or constants.  It will instead number these things like VAR0001  VAR0002 etc.  Not very friendly.  However is still legitimate high-level language output and is probably easier to manipulate and recompile than assembly.  
galkin happens to be incorrect this time.  I have seen a "decompiler" that produces Pascal code.  Now, as nietod mentioned, the relation of the output to the original source will be conicidental at best.  However, if the original program was in fact compiled with the language in question and WITHOUT ANY OPTIMIZATION, the result can be semi-readable.
Yes, I've been told by one of by friends that there is a decompiler, but it is for DELPHI, curentally speaking I am downloading it right now.