Mail Archives: djgpp/2000/03/31/23:54:49
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)
- Raw text -