Mail Archives: djgpp/2000/03/31/23:06:17
"Ben Davis" <ben AT vjpoole DOT freeserve DOT co DOT uk> writes:
> 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?
Generally, you can't. Sorry. Even if you could, it would bear no
resemblance to your original source.
You can disassemble it if you want; use objdump. But you can't get C
source back. Did I mention backups are a good idea? (You might also
check for things like auto-save files from your editor...)
--
Nate Eldredge
neldredge AT hmc DOT edu
- Raw text -