delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/11/10/09:53:26

Date: Wed, 10 Nov 1999 14:15:26 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Frederic Cazenave <cazenave AT radar DOT mcgill DOT ca>
cc: djgpp AT delorie DOT com
Subject: Re: virtual memory
In-Reply-To: <3828487C.2F1C@radar.mcgill.ca>
Message-ID: <Pine.SUN.3.91.991110141502.8611j-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Tue, 9 Nov 1999, Frederic Cazenave wrote:

> Is there a way to change a virtual memory on disk in
> a file ?

I'm guessing that you are talking about memory-mapped files.  If so,
then they are not supported in DJGPP, because the DPMI spec doesn't
provide the underlying functionality.

> In my application when I save data (transfert data from
> a ring buffer to a file on disk) I loose the new data.
> So I 'm looking for a way to put all my data on a file
> faster as possible.

An alternative would be to signal to the source of data not to send it
while you write to the disk.  Yet another alternative would be to
compress the data in memory before you write it out (assuming that
comression ratio of 2:1 can make a difference in your particular
application).

- Raw text -


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