942,788 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 32719
  • C++ RSS
Oct 6th, 2006
0

c/c++ decompiler

Expand Post »
HI, I have exe file writen in c++ or c and wanna decompile it to source code.
Is that possible? If it is, is there any decompilet that can do that?

thanks!
Similar Threads
Reputation Points: 16
Solved Threads: 2
Newbie Poster
Gigs_ is offline Offline
12 posts
since Jun 2006
Oct 6th, 2006
0

Re: c/c++ decompiler

Click to Expand / Collapse  Quote originally posted by Gigs_ ...
HI, I have exe file writen in c++ or c and wanna decompile it to source code.
Is that possible? If it is, is there any decompilet that can do that?

thanks!
Then you must learn assembler. But why do U need it?
Reputation Points: 251
Solved Threads: 29
Posting Whiz in Training
andor is offline Offline
274 posts
since Jun 2005
Oct 6th, 2006
0

Re: c/c++ decompiler

hey I lost my source code
Reputation Points: 16
Solved Threads: 2
Newbie Poster
Gigs_ is offline Offline
12 posts
since Jun 2006
Oct 6th, 2006
1

Re: c/c++ decompiler

Click to Expand / Collapse  Quote originally posted by Gigs_ ...
HI, I have exe file writen in c++ or c and wanna decompile it to source code.
Is that possible? If it is, is there any decompilet that can do that?

thanks!
No, it is not possible to decompile back to C. The best you can do is get the assembly code. Since you lost the source code (and that happened to me a couple times too!) you will just have to rewrite it. That has some advantages because the second write ususlly makes a better program anyway because you already know most of the algorithms needed and you may be able to make them more efficient.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5591
Solved Threads: 2280
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,927 posts
since Aug 2005
Oct 6th, 2006
0

Re: c/c++ decompiler

Quote ...
Is that possible?
It's possible, but very hard and the result won't be good at all. To decompile you need to disassemble into assembly and translate the assembly into C. If you've seen a disassembly, even a good one, you'll know how useless a translation into C would be. There's just too much lost between the original C source and the object code after compilation. You can get better results from reverse engineering the program based on usability.
Reputation Points: 53
Solved Threads: 6
Junior Poster in Training
Inanna is offline Offline
90 posts
since Sep 2006
Jan 26th, 2009
0

Re: c/c++ decompiler

dude! this is highly illegal!
more over- this action is against the agreement when you've installed ms products. you can be easily get litigate for this. it doesn't matter if this was originally your source code. (nor if the developing-language is an open source one cause the GPL agreement also forbid Reverse Engineering)
Reputation Points: 10
Solved Threads: 0
Newbie Poster
eladkarako is offline Offline
5 posts
since Sep 2006
Jan 26th, 2009
0

Re: c/c++ decompiler

Not only did you bump a long-dead thread, everything you said is way off base.
http://en.wikipedia.org/wiki/Reverse_engineering is specifically allowed in some cases, say interoperability. You wouldn't have a vast choice of PCs nowadays if someone hadn't RE'd the original IBM BIOS to produce a clone.

Likewise (for those with short memories), some non-Y2K code had to be RE'd in order to be fixed.

> it doesn't matter if this was originally your source code.
This of course is rubbish. It was your code, so what's the problem?

> nor if the developing-language is an open source one cause the GPL agreement also forbid Reverse Engineering
And this makes no sense whatsoever. If it's GPL, you have the source anyway, therefore there is no need to reverse engineer anything.
But if you want to try just for fun, I doubt anyone would stop you from trying.
Team Colleague
Reputation Points: 5862
Solved Threads: 948
Posting Sage
Salem is offline Offline
7,164 posts
since Dec 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Memory fault(coredump)
Next Thread in C++ Forum Timeline: please help me recognize this piece of code!





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC