Mail Archives: djgpp/1996/03/13/11:52:36
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 -