Mail Archives: djgpp/1998/08/10/02:50:24
On Sun, 9 Aug 1998, Endlisnis wrote:
> Is it faster to use 'int' instead of __dpmi_int ?
The answer to that is "it depends". It depends on how every
environment processes the INT instructions. Some environments, such
as Windows, will catch INT outside of the DPMI server (Windows
includes its own built-in DOS extender which does that), others
perform these chores in the DPMI server. Some environments treat INT
as a priviledged instruction that incurs additional overhead.
In most cases, the speed differences are not too large. So my
recommendation would be to always use __dpmi_int (you can inline it,
if you are desperate and want to avoid a function call), since this is
the safest method. IMHO, you should only be concerned with this if
your program needs to call a real-mode interrupt inside its inner
loop. But these cases are rare (and should be avoided at all costs
anyway).
- Raw text -