Teen Programmers Unite  
 

 

Return to forum top

Decompiler

Posted by Faisal [send private reply] at April 06, 2002, 09:25:53 PM

I had to reformat my hard drive and lost my c++ source code... is there a cood c++ decompiler out there so i can see the source for my .exe

Posted by vikram_1982 [send private reply] at April 07, 2002, 06:37:32 AM

can u do that? Can u get the entire code from an exe file??
Can it be done in Java too? Suppose I have a exe file originally written in Java and if I run a C++ decompiler on it , will i get the corresponding C++ code? I know it sounds silly, but the thought just crossed my mind.

Posted by RedX [send private reply] at April 07, 2002, 06:38:19 AM

There are decompilers, but these are compiler dependend, and don't expect too good results from them. Because when a program is compiled it loses quite a bit of info that is not needed for execution, only for readability (all the constants, function and variable names, etc).

The best way to deal with this, is to make backups.

RedX

Posted by taubz [send private reply] at April 07, 2002, 10:53:31 AM

FYI. Java class files can be very successfully decompiled.

Posted by Faisal [send private reply] at April 07, 2002, 01:13:46 PM

damn... too bad

Posted by Mycroft [send private reply] at April 07, 2002, 02:22:56 PM

Most decompilers only return the code to hex format.

Posted by RedX [send private reply] at April 07, 2002, 05:20:37 PM

Actually they return it to assembly. The bad kind of assembly.

RedX

Posted by miststlkr [send private reply] at April 08, 2002, 04:36:19 PM

is there a good kind?

Posted by RedX [send private reply] at April 08, 2002, 04:52:45 PM

Sure. The fast assembly code used for time-critical functions. That are functions with 10 or 20 lines of assembly with lots of clear comments.
These are even understandable.
The assembly returned from an deassembler consists of several thousands lines of code with no comments or clear labels.
Working with this is a source for computer-phobia.

RedX

Posted by unknown_lamer [send private reply] at April 19, 2002, 01:49:02 PM

"real men don't keep backups, they upload the important
stuff to ftp and let other people mirror it" (or something
similar). Should have kept backups. The idea of a "C++
Decompiler" is basically laughable. You really can't decompile
a language like C++. The problem is that there aren't things
like variables anymore, because they are just there to help
you understand the code. Names are meaningless. All you have
left for variables are their addresses. So, you live, you
learn, you buy a DDS-4 backup drive :)

Posted by CodeRed [send private reply] at April 19, 2002, 02:16:02 PM

Or better yet you run 4 ultra-320 SCSI drives in a RAID-0/1 array

Posted by RedX [send private reply] at April 19, 2002, 02:38:01 PM

Or you could simply place it on a floppy. If it's too big, use lots of floppies. And don't name nor number them. It makes life so much more fun (for those watching you that is, especially near deathline or 2 minutes before an important meeting).
CD's don't provide these levels of entertainment and they have made magnets virtually useless (for entertaining purposses ofcourse).

Moral of the story: Use 2 floppies for important files and keep them away from people with magnets.

RedX

Posted by unknown_lamer [send private reply] at April 19, 2002, 07:49:25 PM

Remember to put some type of floppy holder on them so dust
don't get in through the latch on the top. Dust kills.
I have a copy of RM/FORTRAN from 1986 or something...the disks
have been in protective covers since then and I think they
still work (I wonder how much I get for them seeing as I have
the 5 1/2 and 3/5 SD disks + full manual and box!)

You must be logged in to post messages and see which you have already read.

Log on
Username:
Password:
Save for later automatic logon

Register as a new user
 
Copyright TPU 2002. See the Credits and About TPU for more information.