Mail Archives: djgpp/1998/10/09/17:37:37
DJGPP runs in 32 bit protected mode, so pointers are 32bits long. The
book is written for a 16 bit compiler, so the addresses are much
smaller.
The pointers should go from 0 - 2147483647, although that would need 2gb
of memory and virtual memory, so it is unlikely
Peter Allen
Gloria wrote:
>
> Hi. I'm a newbie to C. I'm learning with a book right now and it's
> getting into pointers. In one program you find out the address of
> various pointers. In the book it says that the memory location should
> only be from 0-65,535 however when I try the program in DJGPP I get
> memory addresses of 300000 and above. What's going on?
- Raw text -