X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Carlo User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: why inportb and outportb are so time expensive ? References: <01c4df88$Blat.v2.2.2$3e1f4700 AT zahav DOT net DOT il> In-Reply-To: <01c4df88$Blat.v2.2.2$3e1f4700@zahav.net.il> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Lines: 14 Message-ID: Date: Sat, 11 Dec 2004 14:55:08 GMT NNTP-Posting-Host: 151.38.171.38 X-Complaints-To: abuse AT net24 DOT it X-Trace: twister1.libero.it 1102776908 151.38.171.38 (Sat, 11 Dec 2004 15:55:08 MET) NNTP-Posting-Date: Sat, 11 Dec 2004 15:55:08 MET Organization: [Infostrada] To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Eli Zaretskii wrote: > > > On what OS? > > Also, can you give more details, like how much time each call to > inportb/outportb takes? My application runs on a dos machine (MS-Dos 6.0) with a i386sx processor @ 33 Mhz clock, with cwsdpmi r5. One program loop takes about 1 mSec, 75% of this millisecond spent for inportb and outportb (with an average of 30/40 calls to that functions). Without any of these calls the program runs up to 10 times faster. Carlo