From 6675295347860129321
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,9684813612e15361
X-Google-Attributes: gidf78e5,public
From: Scott Meyers <smeyers@aristeia.com>
Subject: Re: pointers: sizeof(pointer)
Date: 1998/06/25
Message-ID: <3591A612.15DA@aristeia.com>#1/1
X-Deja-AN: 365884783
X-NNTP-Posting-Host: 204.202.172.26
Content-Transfer-Encoding: 7bit
Approved: stephen.clamage@sun.com (comp.std.c++)
References: <slrn6oqcgp.lfi.sbnaran@bardeen.ceg.uiuc.edu> <6mkkaq$dgu@engnews1.Eng.Sun.COM>
Content-Type: text/plain; charset=us-ascii
Organization: -
Mime-Version: 1.0
NNTP-Posting-Date: Wed, 24 Jun 1998 18:22:08 PDT
Newsgroups: comp.std.c++
Originator: clamage@taumet


Steve Clamage wrote:
| No. Pointers are bigger than ints on a number of popular
| architectures, and are bigger than ints on all the 64-bit
| architectures I am familiar with. It is common for pointers
| to be the same size as longs, but the C and C++ standards
| do not require that any integer type be the same size as
| a pointer. Indeed, on the AS/400 architecture that is the
| case. AS/400 pointers are 48 bits, and it has no 48-bit
| integer type as far as I know.

In the latest MSJ (July), Matt Pietrek explains why 64-bit Windows NT will
use 64-bit pointers and 32-bit longs.  Believe it or not, it's not just to
make life miserable for Unix developers :-)

Scott

--
Scott Meyers, Ph.D.                  Voice: 503/638-6028
C++ Consulting and Training          Fax:   503/638-6614
Author of "Effective C++"            Email: smeyers@aristeia.com
  and "More Effective C++"           WWW:   http://www.aristeia.com/


[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]




