www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/29/07:02:26

From: Thomas Demmer <demmer AT LSTM DOT Ruhr-UNI-Bochum DOT De>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Appending data to executables?
Date: Mon, 29 Sep 1997 12:18:17 +0200
Organization: Lehrstuhl fuer Stroemungsmechanik
Lines: 37
Message-ID: <342F8069.D1A6F1AD@LSTM.Ruhr-UNI-Bochum.De>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 970929101448 DOT 1917K-100000 AT is>
NNTP-Posting-Host: c64.lstm.ruhr-uni-bochum.de
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Eli Zaretskii wrote:
> 
> On 28 Sep 1997, Paul Derbyshire wrote:
> 
> > How about when the exe needs to read its own
> > attached stuff back, or modify it? Same thing? Won't this cause errors in
> > windows and other file sharing environments when the exe will be "in use"?
> 
> Why would the .exe file of a running program be "in use", Windows or
> no Windows?  I don't think it should.  For example, I have no problems
> building Emacs (where eventually the old emacs.exe is entirely
> overwritten) on Windows when the old emacs.exe is already running.
Ther are cases when the exe file remains open, and then you might get a
problem. PMail, for example is such a beast. What I have not yet
figured out is which programs show this behavior (Well, all TurboPascal
files with the overlay appended to the exe). And if there is the
slightest
chance of porting the program to UNIX, writing back to the exe file
is a big No-No. 
IMHO, puting the data into an object file is not that bad, it is
portable (without write back, of course, but Shawn had reading in 
mind, I guess), and the unused stuff gets paged out if neccessary.

-- 
Ciao
Tom

*************************************************************
* Thomas Demmer                                             *
* Lehrstuhl fuer Stroemungsmechanik                         *
* Ruhr-Uni-Bochum                                           *
* Universitaetsstr. 150                                     *
* D-44780  Bochum                                           *
* Tel: +49 234 700 6434                                     *
* Fax: +49 234 709 4162                                     *
* http://www.lstm.ruhr-uni-bochum.de/~demmer                *
*************************************************************

- Raw text -


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