X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Recipient: djgpp AT delorie DOT com Date: Sat, 15 Feb 2014 16:37:46 +0200 From: Eli Zaretskii Subject: Re: __dpmi_int() or int86() ? In-reply-to: X-012-Sender: halo1 AT inter DOT net DOT il To: djgpp AT delorie DOT com Message-id: <83d2iobfwl.fsf@gnu.org> References: Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: "Rod Pemberton" > 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.