Path: utzoo!yunexus!geac!syntron!jtsv16!uunet!mcvax!guido From: guido@cwi.nl (Guido van Rossum) Newsgroups: comp.lang.c Subject: Re: 64 bit ints Message-ID: <7688@boring.cwi.nl> Date: 30 Oct 88 11:56:28 GMT Article-I.D.: boring.7688 References: <6264@june.cs.washington.edu> Sender: news@cwi.nl Reply-To: guido@cwi.nl (Guido van Rossum) Organization: The Royal Society for Prevention of Cruelty to Amoebae Lines: 15 One argument for making int = long = 64 bits is that function call arguments smaller than int are widened to int; if 64 is your machine's word size you probably don't want to push partial words on the stack as parameters. This is even more true when part-word accesses are more expensive. On the other hand, if the machine is equally versatile in handling 8, 16, 32 and 64 bit quantities, *and* you care about porting software written for 32-bit architectures, you may choose to add a 'long long' type for 64 bits, and use short=16, int=long=32 bits. You may still get into trouble with programs that (illegally!) assume a pointer fits in a long... -- Guido van Rossum, Centre for Mathematics and Computer Science (CWI), Amsterdam guido@piring.cwi.nl or mcvax!piring!guido or guido%piring.cwi.nl@uunet.uu.net