www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1997/10/26/09:51:59

Date: Sun, 26 Oct 1997 16:44:33 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Vik Heyndrickx <Vik DOT Heyndrickx AT rug DOT ac DOT be>
cc: djgpp workers <djgpp-workers AT delorie DOT com>
Subject: Re: proposal: movedata, dosmemget, etc. replacement
In-Reply-To: <345083ED.4789@rug.ac.be>
Message-ID: <Pine.SUN.3.91.971026164411.17911C-100000@is>
MIME-Version: 1.0

On Fri, 24 Oct 1997, Vik Heyndrickx wrote:

> > `movedata' should be used for large buffers, where the overhead of the
> > DS reload is negligible.  If they need to move small buffers, they
> > should use `_farnspokeXX' which done't reload DS/ES.
> 
> I'm curious what happens when buffering is off and the user tries to
> read a character from a file stream.

They get lousy performance, which IMHO they deserve.  But if this is a
case which needs to be optimized, we could always add some code to use
`_farnspeek' for small buffers.

> The code needed to implement this is very small (I preliminary think
> zero bytes of code and about 8 bytes of data)

Then go ahead and send patches to DJ, and let us all see how small
that is, and how more convenient does it make the access to hardware.

- Raw text -


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