delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/31/23:06:17

From: Nate Eldredge <neldredge AT hmc DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Reverse-compiler
Date: 31 Mar 2000 17:06:40 -0800
Organization: InterWorld Communications
Lines: 27
Message-ID: <83snx6sk7z.fsf@mercury.st.hmc.edu>
References: <8c3eae$j1l$1 AT news6 DOT svr DOT pol DOT co DOT uk>
NNTP-Posting-Host: mercury.st.hmc.edu
Mime-Version: 1.0
X-Trace: nntp1.interworld.net 954551289 23305 134.173.45.219 (1 Apr 2000 01:08:09 GMT)
X-Complaints-To: usenet AT nntp1 DOT interworld DOT net
NNTP-Posting-Date: 1 Apr 2000 01:08:09 GMT
User-Agent: Gnus/5.0802 (Gnus v5.8.2) Emacs/20.5
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019