Newsgroups: comp.os.msdos.djgpp From: ab915 AT torfree DOT net (William J. Hayes) Subject: Re: Mem problems Message-ID: 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.