home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / pascal / 7936 < prev    next >
Encoding:
Internet Message Format  |  1993-01-07  |  1.5 KB

  1. Path: sparky!uunet!wupost!crcnis1.unl.edu!moe.ksu.ksu.edu!zaphod.mps.ohio-state.edu!usc!enterpoop.mit.edu!eru.mt.luth.se!lunic!sunic!sics.se!eua.ericsson.se!ericom!etlxd10h!etljmme
  2. From: etljmme@etlxd30.ericsson.se (Jim)
  3. Newsgroups: comp.lang.pascal
  4. Subject: Re: There is no decompile on Turbo is ther
  5. Message-ID: <1993Jan7.111150.14153@ericsson.se>
  6. Date: 7 Jan 93 11:11:50 GMT
  7. Sender: news@ericsson.se
  8. Reply-To: etljmme@etlxd30.ericsson.se
  9. Organization: Ericsson
  10. Lines: 24
  11. Nntp-Posting-Host: etlxd10h.ericsson.se
  12.  
  13. In article <1ifihbINNe4e@usenet.INS.CWRU.Edu> ah157@cleveland.Freenet.Edu (Rob Henry) writes:
  14. >I can't take a trubo pascal compiled program and reverse it to get
  15. >the source code can I?
  16.  
  17.  
  18. There's something in a similar vein floating around the C groups too.
  19. Technically yes, it's possible to do.  In fact there's a C program called
  20. Sourcerer which translates binary to asm and then attempts to translate
  21. clumps of associated asm into corresponding C.  It, and other similar
  22. programs, just don't work.
  23.  
  24. 1.  The "source" generated is very inaccurate and is usually just plain
  25.     wrong.  Not to mention back-translating pointers, variables etc.
  26.  
  27. 2.  It's just too much hassle!  Don't forget, to dissassemble to source
  28.     code you have to undo all sorts of compiler optimizations (like
  29.     loop unfolding, for example).
  30.  
  31. The only thing you could reliably re-create are things like clrscr and halt()
  32. because they tend to be obvious and unaltered at the asm level.  So in theory
  33. it's possible but I wouldn't waste your time trying to do it!
  34.  
  35. Cheerio,
  36. Jim.
  37.