From: Weiqi Gao Newsgroups: comp.os.msdos.djgpp Subject: Re: Reverse-compiler Date: Fri, 31 Mar 2000 20:10:44 -0600 Organization: Object Computing, Inc. Lines: 34 Sender: weiqigao AT freewwweb DOT com@*@ppp-9.tnt-1.stl.smartworld.net Message-ID: <38E55AA4.63502FCA@freewwweb.com> References: <8c3eae$j1l$1 AT news6 DOT svr DOT pol DOT co DOT uk> NNTP-Posting-Host: ppp-9.tnt-1.stl.smartworld.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.12-20 i586) X-Accept-Language: en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Ben Davis wrote: > > OK. Now this is going to sound stupid. > > GCC *very* cleverly managed to delete my source code :-( probably because I > got the command line wrong. I still have the executable, with debugging info > but optimised. I also have a makefile (which didn't work; RHIDE created it, > but it wasn't linking with the Allegro library), and I have the RHIDE > project files. > > The source was written in C. > > I need to generate the source from the executable, as best as possible. Is > the required program part of the standard DJGPP distribution? If so, what is > it called? If not, where can I get such a program? > > Any and all help will be appreciated. Is this on a DOS machine? If it is, and assuming that you haven't don too much new work to the disk that your source code resided on, you might have a chance of recovering the source file using DOS Disk Editors (like the Norton Utilities, or PC Tools, or DOS Undelete.) In the best case scenario, the sectors where your source file occupied on the disk hasn't been altered at all and all you have to do is to fashion a dirctory entry pointing to the head of the old source file. It only works if you are using FAT (or the early Windows 95 fs). Don't write to the disk any further until you've recovered your file, (or you decide to give up, which ever comes first). -- Weiqi Gao weiqigao AT freewwweb DOT com (my old trusty a.crl.com account has gone away)