Mail Archives: djgpp/1997/09/28/19:55:55
On Fri, 26 Sep 1997, Chirayu Krishnappa wrote:
> >I'd gues that Watcom can do that because it uses a DOS extender which
> >catches all system calls and does its thing behind the scenes. DJGPP
>
> But a pointer dereference if not a system call, or am I mistaken?
Not necessarily. Accessing addresses which aren't mapped into the
program's address space causes an exception in protected mode. In
DJGPP, this exception in general causes your program to be aborted.
But a DOS extender could set up things in a way that this exception
ends up inside an exception handler set up by the extender. When this
happens, the extender can do whatever it pleases; in particular, it
could change the address and move the data on behalf of the
application.
- Raw text -