Xref: utzoo comp.lang.c++:13175 comp.lang.c:38900 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!dali.cs.montana.edu!uakari.primate.wisc.edu!sdd.hp.com!mips!cs.uoregon.edu!ogicse!intelhf!ichips!iwarp.intel.com!inews!pima!bhoughto From: bhoughto@pima.intel.com (Blair P. Houghton) Newsgroups: comp.lang.c++,comp.lang.c Subject: Re: 64 bit architectures and C/C++ Message-ID: <4121@inews.intel.com> Date: 1 May 91 03:19:09 GMT References: <168@shasta.Stanford.EDU> <4068@inews.intel.com> <1991Apr30.140217.7065@world.std.com> Sender: news@inews.intel.com Organization: Intel Corp, Chandler, AZ Lines: 19 In article <1991Apr30.140217.7065@world.std.com> wmm@world.std.com (William M Miller) writes: >bhoughto@pima.intel.com (Blair P. Houghton) writes: >> short = 8 bits> >Actually, ANSI requires at least 16 bits for shorts (see SHRT_MIN and >SHRT_MAX in , X3.159-1989 2.2.4.2.1). I had my brain packed-BCD mode that day, apparently :-/... The minimum sizes for the four integer types are: char 8 bits short 16 int 16 long 32 Other than that, one need only ensure that short, int, and long are multiples of the size of a char, e.g., 9, 27, 36, 36. --Blair "Hike!"