954,506 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

decompiler

is there any software that gives you souce from .exe programs?

jan1024188
Posting Whiz in Training
254 posts since Aug 2006
Reputation Points: 27
Solved Threads: 2
 

No. Once compiled the source code cannot be retrieved.

WaltP
Posting Sage w/ dash of thyme
Moderator
10,506 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944
 

but why?

jan1024188
Posting Whiz in Training
254 posts since Aug 2006
Reputation Points: 27
Solved Threads: 2
 
but why?


Probably because of the way in which the object file is generated from the source file...

The actual C / C++ source code goes thorough a lot of transformations and platform specific optimizations during its compilation and building phase which make the source code from the object file to be retrieved almost impossible.

~s.o.s~
Failure as a human
Administrator
11,938 posts since Jun 2006
Reputation Points: 3,281
Solved Threads: 734
 

AM....thanks sos...

jan1024188
Posting Whiz in Training
254 posts since Aug 2006
Reputation Points: 27
Solved Threads: 2
 

There are some applications whose developers claim can (in some cases) retrieve a C - like representation of the original source from a .exe file. It is generally believed that reverse compilation of 3rd level languages is difficult bacause there may not always be a one to one mapping between source and compiled binary. It is certainly impossible to retrieve C++ code from a .exe because all class structures are thrown away before the binary is produced.

Steven.

Mushy-pea
Posting Whiz in Training
275 posts since Jun 2006
Reputation Points: 47
Solved Threads: 1
 

Assembly on the other hand, can be disassembled fairly easily from an executable because it's so low-level. Java is also very easy to decompile; you can get almost an exact replica of the original source code if you run it through a decompiler because it's only compiled to bytecode.

John A
Vampirical Lurker
Team Colleague
7,630 posts since Apr 2006
Reputation Points: 2,240
Solved Threads: 339
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You