Mail Archives: djgpp/1997/02/11/11:31:55
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.
- Raw text -