Mail Archives: djgpp/1999/06/23/18:05:31
On 14 Jun 1999, Antonio wrote:
> I am almost a newbye in djgpp programming, but so far it seems to me that
> djgpp can't compile ansi c (for ex. a program not using assembler written 4
> linux) because of the far pointers, is it so? Why not use a 64 bit var for
> far pointers in order to save EIP:ECX instead of using poke and peek
> procedures to access all of the memory?
Well.... ANSI C surely has nothing to do with assembly language...
DJGPP respects the ANSI C standard, because it's based on the gcc
compiler...
There's no such thing as far or near pointers in DJGPP, since you are in
protected mode, so a pointer is always a selector and an offset (somewhat
similar to segment:offset, but the arithmetic and security is a lot
different).
Why do you want to use poke&peek to access al the memory? AFAIK, poke and
peek are not part of the standard libc...
--
Erwann ABALEA
erwann AT abalea DOT com
- Raw text -