home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!gateway
- From: ANDREW@odin.uniras.dk (Leif Andrew Rump, Software Engineer, UNIRAS A/S)
- Newsgroups: comp.lang.c++
- Subject: Re : Converting EXE c++ files back to source code
- Date: 30 Dec 1992 04:45:53 -0600
- Organization: UTexas Mail-to-News Gateway
- Lines: 38
- Sender: daemon@cs.utexas.edu
- Message-ID: <01GSXC23G5E891VUTU@odin.uniras.dk>
- NNTP-Posting-Host: cs.utexas.edu
-
- twb51@isuvax@iastate.edu answer to this letter was
- >> I have some old C++ programs that I written 2 or 3 yrs ago. I have more
- >> EXE files than C++ source code. Some of these programs I've written are
- >> quite good but I only have the EXE file that the compiler created. I
- >> was wondering if there is a way to convert the EXE files back to there
- >> original source code? Can it be done?
- >
- >It is not possible to do this! If there was such a tool, then it would be
- >a lot easier for us to modify all EXE and COM programs out there.
-
- This is going to be an academic answer :-) I would say it is possible
- to decompile a program but only IF and only IF you as the programmer of
- the decompiler know the inner structure of the compiler. You must know
- what code blocks the compiler would use in each program construction (if,
- case, while, functions...) and how it optimize the code - I didn't say it
- would be easy! The decompiler will of course not be able to reconstruct
- the original indentation of the code and if the symbol table has been
- stripped off it has to fall back on variable V0..V99 and so on. It will
- probably also have problems finding out if a variable is part of a class/
- structure - and unions will also cause a bit of a headache - hmm - it may
- not be possible to do more than just a half heartet job! :-(
-
- HAPPY NEW YEAR!!!
-
- Andrew
-
- Leif Andrew Rump, UNIRAS A/S, 376, Gladsaxevej, DK-2860 Soeborg, Denmark
- UUCP: andrew@odin.uniras.dk, Phone: +45 31 67 22 88, Fax: +45 31 67 60 45
-
- Project: Toolmaster-UIM/X (tux)
- Plan:
- begin 644 plan
- M5&AI<R!S<&%C92!H87,@=6YI;G1E;G1I;VYA;&QY(&)E96X@;&5F="!B;&%N
- L:RXN+@H*"0D)"0E!;F1R97<**$-O<'ER:6=H=" H8RD@1&]U9R Q.3DR*0IN
-
- end
-
-
-