Path: utzoo!yunexus!geac!syntron!jtsv16!uunet!lll-winken!lll-lcc!ames!oliveb!pyramid!ctnews!starfish!jerry From: jerry@starfish.Convergent.COM (Gerald Hawkins) Newsgroups: comp.lang.c Subject: Re: 64 bit ints Message-ID: <789@starfish.Convergent.COM> Date: 30 Oct 88 06:25:49 GMT Article-I.D.: starfish.789 References: <6264@june.cs.washington.edu> Organization: Convergent Technologies, San Jose, CA Lines: 29 From article <6264@june.cs.washington.edu>, by david@june.cs.washington.edu (David Callahan): > > words. "Char" should be 8bits of course and "long int" 64 since > pointers will be. > > How long should an "int" be (32 or 64)? > How about a "short int" (16/32)? > How is this decision altered if partial word accesses > are more expensive than full word accesses? > - I'm no expert, but I understand that the language standard allows short, int, and long to all be the same length if that is convenient. Of course, if you do that, you cut off an easy way for people who have to make machine dependant stuff work; ie, if someone was silly enough to depend on int being 16 bits for variables, and you had to port the application to this machine, it may be nice to have a short be 16 bits so the code could easily be modified to say 'short' instead of 'int'. Obviously, no-one reading this ever creates machine dependant code, though. We know that already. Rainy Days and Automatic Weapons Fire Alway Get Me Down. These opinions are mine. Jerry. (jerry@Starfish.Convergent.COM) -----