home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.arch
- Path: sparky!uunet!munnari.oz.au!manuel!cs.anu.edu.au!cs.anu.edu.au!robert
- From: robert@cs.anu.edu.au (Robert Cohen)
- Subject: Re: 32 => 64 Transition
- Message-ID: <robert.713773090@cs.anu.edu.au>
- Organization: Computer Science Dept., Australian National University
- References: <340@moene.indiv.nluug.nl> <1992Aug08.165832.114442@cs.cmu.edu> <1992Aug11.125326.16719@email.tuwien.ac.at> <id.UHAS.9TA@ferranti.com>
- Date: Fri, 14 Aug 1992 06:18:10 GMT
- Lines: 28
-
- peter@ferranti.com (peter da silva) writes:
-
- >What size would *you* make an int? 64 bits? What do you do for a 32-bit
- >data type? Short? Then what do you do for a 16-bit data type? Create another
- >abomination "short short" or "long char"? "long long" is bad enough.
-
- The perfect solution: int= 64, long =128 (for real men's numbers),
- short = 32, char = 8, long char= 16, short short = 24,
- long short = 48 and short long = 96.
- If we need more precision we can start using short short long and
- long short long etc.
- In case anyone hasn't realised yet :-) :-) :-)
-
- More seriously, I belive that we need a way to machine independently
- specify the precision such as int:32.
- When I write a program I usually know what sort of range I expect
- a variable to have to hold. I dont care if its an int or a long or a short
- on different machines, I want a number about that big.
-
- Who uses 16 bit variables anymore anyway, memory's cheap, right :-)
-
- Robert
-
- --
- Robert Cohen email: robert@cs.anu.edu.au
- PhD Student, Dept of Computer Science
- Australian National University
- Neuron not responding, still meditating. - "BrainOS" error message
-