delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/09/17:37:37

Message-Id: <361E81CA.E224CF77@cableol.co.uk>
Date: Fri, 09 Oct 1998 22:36:10 +0100
From: The Allens <allen DOT asjp AT cableol DOT co DOT uk>
X-Mailer: Mozilla 4.04 [en] (Win95; I)
Mime-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: Mem size
References: <361E54BC DOT 62DA AT golden DOT net>
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019