From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_00,INVALID_MSGID, PLING_QUERY,REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4873305131bf4d94 X-Google-Attributes: gid103376,public X-Google-Thread: 109fba,4873305131bf4d94 X-Google-Attributes: gid109fba,public X-Google-Thread: fdb77,4873305131bf4d94 X-Google-Attributes: gidfdb77,public X-Google-Thread: 1014db,4873305131bf4d94 X-Google-Attributes: gid1014db,public From: Peter.Mayne@digital.com (Peter Mayne) Subject: Re: How big is an int? (was: Yet another stupid language war (was: ... the only languages you need!!)) Date: 1997/11/06 Message-ID: <346242f2.925764484@mrnews.mro.dec.com>#1/1 X-Deja-AN: 288182810 References: <34557f2b.1934172@news.mindspring.com> <3456e71b.3833189@news.mindspring.com> <3458D116.2D34@pseserv3.fw.hac.com> <63anc7$75p$1@darla.visi.com> <345947D2.D20EF8E9@horvath.com> <345F49A2.5F5DC5A0@aom.ericsson.se> <345f4f9e.0@isc-newsserver.isc.rit.edu> <34666a87.96408197@pncnt.tecnomen.ie> <345f9c32.752004296@mrnews.mro.dec.com> Reply-To: Peter.Mayne@digital.com Organization: Digital Equipment Corporation Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++,comp.lang.java.advocacy,comp.lang.c,comp.lang.c++ Date: 1997-11-06T00:00:00+00:00 List-Id: On Wed, 5 Nov 1997 16:24:51 GMT, Dan.Pop@cern.ch (Dan Pop) wrote: >In <345f9c32.752004296@mrnews.mro.dec.com> Peter.Mayne@digital.com (Peter Mayne) writes: > >>I'd say both of these statements are wrong. It depends on the >>compiler. > >But the compiler itself is influenced by the CPU and the OS I agree. But it is still the compiler designer that makes the choice, even if that choice is influenced by the OS/CPU. >>In the case of Alpha, it may have 64 bit registers, but it has natural >>32 bit and 64 bit datatypes. Is one more "natural" than the other? > >Is it "natural" to have no *standard* 64-bit integral type on a compiler >for a CPU with 64-bit registers? Yet, this is the case for Alpha NT and >OpenVMS compilers :-) In these cases, yes. The compiler designer presumably thought that since these operating systems also run on 32 bit CPUs which have no natural 64 bit type, making long or int a 64 bit type would needlessly complicate things when moving between platforms. Presumably, the compiler designer was influenced not by the CPU the compiler runs on, but by the compatibility requirements with a different CPU. PJDM Digital Equipment Corporation (Australia), Canberra, ACT ------------------------------------------------------------------------------- These are my opinions, and have nothing to do with Digital. This was edited by a wheelbarrow full of walruses.