Mail Archives: djgpp/1997/07/29/00:52:34
At 11:07 7/27/1997 +0200, you wrote:
>I understand that DJGPP v2 is DPMI only environment
>and such mapping is not possible but I have question:
>Is the access to memory mapped device limited only by that
>hardware or by the compiler also - that is:
>
>should the access to memory mapped device be faster/slower or
>the same comparing DJGPP v1 and DJGPP v2.
If you use the standard farptr (farpeek/farpoke) family of functions, it may
be slower due to the overhead of reloading the segment register each time.
Then again, it may not. :-) YMMV. If that isn't fast enough, you can use
either the no-selector farptr functions (farnspeek/farnspoke) which are safe
but only work in tight loops without function calls, or
__djgpp_nearptr_enable, which is more flexible but more dangerous and less
portable.
>P.S.
>I am sorry for my bad English
I think your English is very good.
Nate Eldredge
eldredge AT ap DOT net
- Raw text -