www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/11/01:46:25

Newsgroups: comp.os.msdos.djgpp
From: ab915 AT torfree DOT net (William J. Hayes)
Subject: Re: Mem problems
Message-ID: <F0nE5r.3yK.0.queen@torfree.net>
Organization: Toronto Free-Net
X-Newsreader: TIN [version 1.2 PL2]
References: <361E5778 DOT 7521 AT golden DOT net>
Date: Sun, 11 Oct 1998 05:34:38 GMT
Lines: 11
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Gloria (lucjack AT golden DOT net) wrote:
: Hi. I'm new to C. I've started a chapter in a book I bought about
: pointers. In the program I print out the address of various variables.
: The book says  the addresses should be in the 0 -  65353 range, but I
: get addresses of 300000 and above. What's going on?

The book has made the assumption that you are using a 16-bit 
real-mode compiler in the small or tiny memory model. DJGPP is a 32-bit 
protected mode compiler. It uses virtual memory, there you can see 
adresses as large as 4,294,967,295.

- Raw text -


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