Mail Archives: djgpp/1999/02/21/06:54:30
On Sat, 20 Feb 1999, Carlos Giani_AEN2003 (M2003) wrote:
> I'm not sure, but could it be that accessing DOS memory (I mean the
> first 640 kbyte) is slower than accessing all the other mem?
Not at all. There's no difference in speed of memory access, no
matter where in the address space that memory lives.
It is true that using farptr functions each access needs 2
instructions, as opposed to 1 instruction for simple pointer
dereference. However, unless you use farptr for processing large
buffers, the difference is usually negligible; and for large buffers,
there are better techniques. See section 18.4 of the DJGPP FAQ list
for more details.
- Raw text -