Date: Wed, 13 Mar 1996 18:42:19 +0200 (IST) From: Eli Zaretskii To: 76003 DOT 3544 AT compuserve DOT com Cc: djgpp AT delorie DOT com Subject: Re: New to DJGPP In-Reply-To: <4i45mo$b4k@dub-news-svc-6.compuserve.com> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Tue, 12 Mar 1996 76003 DOT 3544 AT compuserve DOT com wrote: > While I've been programming for awhile, I'm new to DJGPP, and have a > rather simple question: How does djgpp handle the "NEAR" and "FAR" > pointer types? Is there a switch to turn these on? You don't need these at all for the purposes they are used in 16-bit DOS compilers. DJGPP generates 32-bit code for flat address space, where you don't have to worry about memory segmentation, because the segment registers don't change their values (well, almost). The only case when you'd need to know about `far pointers' is when you have to access certain specific absolute addresses, like the video memory. Read chapter 18 of the DJGPP FAQ list (available as v2/faq200b.zip from the same place you get DJGPP) for more details on this.