home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / cplus / 18535 < prev    next >
Encoding:
Internet Message Format  |  1992-12-30  |  2.0 KB

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