Jason Burgon wrote:
> In article: <68vl4u$...@kruuna.Helsinki.FI> ronka...@cc.helsinki.fi (Osmo
> Ronkanen) writes:
> >In article <68v8rq$i1...@gentiana.datanet.hu>, BandiT <apa...@mol.hu> wrote:
> >>Peter Moraliyski (huibm...@ibm.net) wrote:
> [...]
> >>Borland said, their protected mode compilers work faster. Maybe this applies
> >>to other DPMI stuff, too.
> >Do not assume. Protected mode is per se slower as loading pointers
> >takes much longer.
> This is only true on 286 and 386 processors. processors. According to my TASM
> quick reference guide, a LDS/LES/LFS/LGS instruction on a 486 (and presumably
> above) takes the same time (6 or 12 cycles, depending on operand) in both real
> and protected mode. Loading pointers is slower on 286's (7~ vs 21~) and 386's
> (7~ vs 22~).
> > However, when the extra memory it allows becomes an
> >issue then it is faster than solutions using XMS or disk.
> Yes. There is also the overlay issue, which often slows down large real mode
> programs considerably. Sometimes the extra memory available to protected mode
> apps can improve performance very considerably.
> > One thing in which DPMI is clearly slower is starting up.
> Yes. The RTM.EXE DLL has to be loaded and initialized, and the DPMI16BI.OVL DPMI
> server as well if there is no DPMI server presently loaded on the host system.
> >IMO one should use Real mode unless memory is an issue. However, one
> >should write in such a way that converting to DPMI is easy (like just
> >recompiling). Of course one can make two versions like Borland did with
> >TP and TPX (In Turbo Pascal only)
> Yes, real mode is just fine for small apps that don't use much memory, but I
> would still develop a DPMI version for debugging purposes, as protected mode is
> much better at finding those obscure bugs that often go unnoticed in real mode.
> -- Jay
> --------------------------------------------------------------------------
> | Jason Burgon - author of Graphic Vision, TV-Like GUI for 256 Colour SVGA |
> | g...@jayman.demon.co.uk ftp://SimTel/msdos/turbopas/gv4svga1.zip |
> | ***NEW VERSION OF GV AVAILABLE FROM*** -> http://www.jayman.demon.co.uk |
> --------------------------------------------------------------------------