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: 1014db,4873305131bf4d94 X-Google-Attributes: gid1014db,public X-Google-Thread: 103376,4873305131bf4d94 X-Google-Attributes: gid103376,public X-Google-Thread: 109fba,4873305131bf4d94 X-Google-Attributes: gid109fba,public From: ppearson@nospam.hiwaay.net (Paul F. Pearson) 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: 287698163 References: <345F49A2.5F5DC5A0@aom.ericsson.se> <63oadj$ljc$1@helios.crest.nt.com> <63se05$bgu$1@news.nyu.edu> Organization: home Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++ Date: 1997-11-07T00:00:00+00:00 List-Id: In article , Dan.Pop@cern.ch (Dan Pop) wrote: >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. Am I remembering correctly that ANSI C states the the sizeof(short) must tbe the sizeof (char)? -- Paul F. Pearson - ppearson@dynal.com or ppearson@hiwaay.net http://fly.hiwaay.net/~ppearson/ "Lord heal our land. Father heal our land. Hear our cry and turn our nation back to You" - Heal Our Land, _Magnify The Lord_ (Integrity Music)