From: "Charles Sandmann" Newsgroups: comp.os.msdos.djgpp Subject: Re: protected mode Date: Fri, 10 Apr 1998 14:28:52 Organization: Aspen Technology, Inc. Lines: 10 Message-ID: <352e2ca4.sandmann@clio.rice.edu> References: <6ghffn$l02 AT bgtnsc02 DOT worldnet DOT att DOT net> Reply-To: sandmann AT clio DOT rice DOT edu NNTP-Posting-Host: dmcap2.aco.aspentech.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk > to be working fine. My question is are there any red flags in this > function that I am not seeing. > if (__djgpp_nearptr_enable()) .. > __djgpp_nearptr_disable(); These two functions are fairly slow. Once your code is working in a stable manner I would suggest ifdefing/removing these two calls and putting a single call to nearptr_enable someplace early in your code.