www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/03/13/11:52:36

Date: Wed, 13 Mar 1996 18:42:19 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
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: <Pine.SUN.3.91.960313183822.10443O-100000@is>
Mime-Version: 1.0

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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019