Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.msdos.djgpp > #1727 > unrolled thread

__dpmi_int() or int86() ?

Started by"Rod Pemberton" <dont_use_email@xnohavenotit.cnm>
First post2014-02-15 05:03 -0500
Last post2014-02-15 16:37 +0200
Articles 2 — 2 participants

Back to article view | Back to comp.os.msdos.djgpp


Contents

  __dpmi_int() or int86() ? "Rod Pemberton" <dont_use_email@xnohavenotit.cnm> - 2014-02-15 05:03 -0500
    Re: __dpmi_int() or int86() ? Eli Zaretskii <eliz@gnu.org> - 2014-02-15 16:37 +0200

#1727 — __dpmi_int() or int86() ?

From"Rod Pemberton" <dont_use_email@xnohavenotit.cnm>
Date2014-02-15 05:03 -0500
Subject__dpmi_int() or int86() ?
Message-ID<op.xbbh8knb5zc71u@localhost>
I use __dpmi_int() to call RM interrupts with DJGPP.
So far, I haven't had much use for a PM interrupts.

However, I understand that you can use int86() to call
PM interrupt routines, if installed.  The DPMI host
has installed PM ISRs that will reflect the PM interrupt
to RM.  So, both int86() and __dpmi_int() can be used
to call RM interrupts.  I understand that __dpmi_int()
is generally recommended for this.

But, which is _actually_ faster with CWSDPMI for calling
RM interrupts?  PMODEDJ?  Is it faster to use __dpmi_int()
or to use int86()?  Has anyone actually timed this, in the
past perhaps?  I.e., how does the combined overhead of each
DJGPP call and DPMI portion compare for both?


Rod Pemberton

[toc] | [next] | [standalone]


#1729

FromEli Zaretskii <eliz@gnu.org>
Date2014-02-15 16:37 +0200
Message-ID<83d2iobfwl.fsf@gnu.org>
In reply to#1727
> From: "Rod Pemberton" <dont_use_email@xnohavenotit.cnm>
> Date: Sat, 15 Feb 2014 05:03:46 -0500
> 
> But, which is _actually_ faster with CWSDPMI for calling
> RM interrupts?  PMODEDJ?  Is it faster to use __dpmi_int()
> or to use int86()?  Has anyone actually timed this, in the
> past perhaps?  I.e., how does the combined overhead of each
> DJGPP call and DPMI portion compare for both?

I didn't time this, but I don't think the differences matter much.
Any way you do it, there's a need for two mode switches.  A mode
switch eats up thousands of CPU cycles, which is orders of magnitude
more than any overhead incurred by an extra function call.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.os.msdos.djgpp


csiph-web