From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: far keyword Date: Wed, 28 Jan 1998 19:37:03 -0500 Organization: Two pounds of chaos and a pinch of salt. Lines: 22 Message-ID: <34CFCF2F.4CE2@cs.com> References: <34CF3BCE DOT 9E13A53F AT tp DOT silkera DOT net> NNTP-Posting-Host: ppp213.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Liche wrote: > > Does djgpp not support the far keyword? For example: char far* test = > (char far*) 0x00000000L. Why should it? DJGPP is a 32-bit compiler, and therefore has no use for any of those silly real mode addressing tricks. If you want to access memory addresses at fixed locations (such as VGA memory) that are not mapped into your program's address space, then you must use one of the interfaces provided by DJGPP for that purpose. I won't get into the details here, but they are described fully in chapter 10 of the DJGPP Frequently Asked Questions list (v2/faq210b.zip from SimTel or online at http://www.delorie.com/djgpp/v2faq/). -- --------------------------------------------------------------------- | John M. Aldrich | "Autocracy is based on the assumption| | aka Fighteer I | that one man is wiser than a million | | mailto:fighteer AT cs DOT com | men. Let's play that over again, | | http://www.cs.com/fighteer | too. Who decides?" - Lazarus Long | ---------------------------------------------------------------------