From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,76b62d6ecdceb3c4 X-Google-Attributes: gid1164f8,public From: "Jeff Donsbach" Subject: Re: 32 and 64 bit questions Date: 1999/11/09 Message-ID: <809v3u$nfh$1@lead.zk3.dec.com>#1/1 X-Deja-AN: 546619131 Content-Transfer-Encoding: 7bit References: <38220B81.B04EC3EE@rchland.vnet.ibm.com> <3824F582.855F31FA@rchland.vnet.ibm.com> X-Priority: 3 Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Complaints-To: iass@lead.zk3.dec.com X-Trace: lead.zk3.dec.com 942178238 24049 16.35.128.40 (9 Nov 1999 20:10:38 GMT) Organization: UBPG X-MSMail-Priority: Normal Mime-Version: 1.0 NNTP-Posting-Date: 9 Nov 1999 20:10:38 GMT Newsgroups: comp.sys.dec 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