From: "Jeff Donsbach" <jeff.donsbach@nospam.compaq.com>
Subject: Re: 32 and 64 bit questions
Date: 1999/11/09 [thread overview]
Message-ID: <809v3u$nfh$1@lead.zk3.dec.com> (raw)
In-Reply-To: 3824F582.855F31FA@rchland.vnet.ibm.com
Roberts answer is 100% correct. On Tru64 Unix, "long" is always 64 bit and
"int" is always 32 bit using Compaq compilers. Other compilers such as gcc
COULD use different rules, but I believe don't. That would be inconsistent
with the system API's that expect "long" to be 64 bit values. Section 2.2 of
the Tru64 Unix Programmer's Guide defines the sizes of all the base data
types for Tru64 Unix. This applies to both C and C++. The FORTRAN compilers
allow you to control the default size of the "INTEGER" data type via
compiler switches. Seems pretty unambiguous to me.
What is this "__32BITS" macro you are talking about? I've never seen it. Is
it in some #include file you've found somewhere, perhaps the Rogue Wave
include files that come with the C++ compiler? The Compaq compilers do not
recognize any such #define that would alter the size of "long" data types.
It is not possible to change the size of "long" data types with Compaq C or
C++ compilers. I can't speak for other compilers.
By the way - in MS VC++ for Alpha, "void *" is also only 4 bytes, same as
x86, as Windows NT is a 32 bit operating system and all pointers are always
32 bits (leaving the Win64 SDK out of the picture for simplicity's sake).
Is that any clearer now?
Jeff D
next prev parent reply other threads:[~1999-11-09 5:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-11-04 5:00 32 and 64 bit questions Larry W Loen
1999-11-05 5:00 ` Robert Harley
1999-11-06 5:00 ` Larry Loen
1999-11-09 5:00 ` Jeff Donsbach [this message]
1999-11-11 5:00 ` Larry Loen
1999-11-09 5:00 ` bdwheele
1999-11-15 5:00 ` 32 and 64 bit questions (some results) Larry W Loen
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox