Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Silly Question, but asking nonetheless 3

Status
Not open for further replies.

Newb101

Programmer
Dec 5, 2005
1
US
Anything available to extract C source code from an .exe? I know the exe in question was programmed using C.

Thanks,
Newb101
 
No No No No No.
C is a compiled language.
In the good old days, it was first pre-processed to deal with macros and the like and then converted to assembly language. Then it was assembled to machine code and linked to anything else that it might need.
The upshot of all of this is that the .exe is nothing like the source you started out with.
Although the assmebly phase may now be skipped, the principles are still the same. When the binary (.exe) is produced, all of the language is lost. All you are left with is something that tells a processor what to do.
There are decompilers around that attempt to reverse engineer the binary back to some form of source but the coversion will leave you with barely readable C code with no sensible variable names or function names.



Trojan.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top