c/c++ decompiler

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Jun 2006
Posts: 12
Reputation: Gigs_ is an unknown quantity at this point 
Solved Threads: 2
Gigs_ Gigs_ is offline Offline
Newbie Poster

c/c++ decompiler

 
0
  #1
Oct 6th, 2006
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!
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 275
Reputation: andor has a spectacular aura about andor has a spectacular aura about andor has a spectacular aura about 
Solved Threads: 29
andor's Avatar
andor andor is offline Offline
Posting Whiz in Training

Re: c/c++ decompiler

 
0
  #2
Oct 6th, 2006
Originally Posted by Gigs_ View 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!
Then you must learn assembler. But why do U need it?
If you want to win, you must not loose (Alan Ford)
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 12
Reputation: Gigs_ is an unknown quantity at this point 
Solved Threads: 2
Gigs_ Gigs_ is offline Offline
Newbie Poster

Re: c/c++ decompiler

 
0
  #3
Oct 6th, 2006
hey I lost my source code
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,330
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1453
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is online now Online
Still Learning

Re: c/c++ decompiler

 
0
  #4
Oct 6th, 2006
Originally Posted by Gigs_ View 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!
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.
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 90
Reputation: Inanna is on a distinguished road 
Solved Threads: 6
Inanna's Avatar
Inanna Inanna is offline Offline
Junior Poster in Training

Re: c/c++ decompiler

 
0
  #5
Oct 6th, 2006
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.
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 3
Reputation: eladkarako is an unknown quantity at this point 
Solved Threads: 0
eladkarako's Avatar
eladkarako eladkarako is offline Offline
Newbie Poster

Re: c/c++ decompiler

 
0
  #6
Jan 26th, 2009
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)
Elad Karako.
.Net Programmer
Reply With Quote Quick reply to this message  
Join Date: Dec 2005
Posts: 5,851
Reputation: Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute 
Solved Threads: 749
Team Colleague
Salem's Avatar
Salem Salem is offline Offline
Void main'ers are DOOMed

Re: c/c++ decompiler

 
0
  #7
Jan 26th, 2009
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC