Date: Tue, 11 Feb 1997 18:17:27 +0200 (IST) From: Eli Zaretskii To: Greg D Stewart cc: djgpp AT delorie DOT com Subject: Re: hmm... In-Reply-To: <19970211.065651.7967.1.way-cool@juno.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Tue, 11 Feb 1997, Greg D Stewart wrote: > I know that far pointers don't work exactly under DJGPP, but can I change > every (char, that is) far pointer to an unsigned char *pointer. Yes, provided that the far pointer in the original program wasn't used to reference a memory-mapped device (such as the VGA video RAM). For those, you will have to rewrite the code. Be sure to read relevant sections of Chapter 18 from the FAQ. The easiest way to get rid of the far declarations which do NOT reference memory-mapped devices is to give -Dfar= option on the gcc command line; this just defines "far" away without requiring that you edit the sources. > Also on > the _fmemcpy of other compilers, can I use that movedata function > instead? Just memcpy. But again, this won't work if _fmemcpy was used to move data to and from memory-mapped peripherals.