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=-1.2 required=5.0 tests=BAYES_00,INVALID_MSGID, PLING_QUERY 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: 1014db,4873305131bf4d94 X-Google-Attributes: gid1014db,public X-Google-Thread: 109fba,4873305131bf4d94 X-Google-Attributes: gid109fba,public X-Google-Thread: fdb77,4873305131bf4d94 X-Google-Attributes: gidfdb77,public From: Dan.Pop@cern.ch (Dan Pop) Subject: Re: How big is an int? (was: Yet another stupid language war (was: ... the only languages you need!!)) Date: 1997/11/07 Message-ID: #1/1 X-Deja-AN: 288229637 Sender: news@news.cern.ch (USENET News System) References: <345F49A2.5F5DC5A0@aom.ericsson.se> <63oadj$ljc$1@helios.crest.nt.com> <63se05$bgu$1@news.nyu.edu> X-Nntp-Posting-Host: ues5.cern.ch Organization: CERN European Lab for Particle Physics Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++,comp.lang.java.advocacy,comp.lang.c,comp.lang.c++ Date: 1997-11-07T00:00:00+00:00 List-Id: In <63se05$bgu$1@news.nyu.edu> kenner@lab.ultra.nyu.edu (Richard Kenner) writes: >In article nospam@spam.com writes: >>I even had one person in the past try and tell me that when Intel went to >>64bits, that M$ was going to have: >> >> short = 2 bytes >> long = 4 bytes >> int = 8 bytes > >This was Sun's original choice for their 64 bit systems, but I think >later decided against it. Such a choice simply CANNOT work with the C's promotion rules, unless the implementation makes INT_MAX no larger than LONG_MAX, which would result in wasting 4 bytes of the int objects. Dan -- Dan Pop CERN, IT Division Email: Dan.Pop@cern.ch Mail: CERN - PPE, Bat. 31 1-014, CH-1211 Geneve 23, Switzerland