home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.arch
- Path: sparky!uunet!haven.umd.edu!decuac!pa.dec.com!rdg.dec.com!ryn.mro4.dec.com!news
- From: blair@snogum.enet.dec.com (Blair Phillips - Digital)
- Subject: Re: 32 => 64 Transition
- Message-ID: <1992Aug13.230647.4171@ryn.mro4.dec.com>
- Lines: 44
- Sender: news@ryn.mro4.dec.com (USENET News System)
- Reply-To: Blair.Phillips@cao.mts.dec.com
- Organization: Digital Equipment Corporation
- References: <1992Aug08.165832.114442@cs.cmu.edu> <1992Aug11.125326.16719@email.tuwien.ac.at> <id.UHAS.9TA@ferranti.com> <1992Aug13.182851.18305@mprgate.mpr.ca>
- Date: Thu, 13 Aug 1992 23:06:47 GMT
-
-
- In article <1992Aug13.182851.18305@mprgate.mpr.ca>, mcvey@mpr.ca (Iain McVey) writes:
- >Hmm, perhaps I have my wires crossed here, but I thought that int was
- >supposed to be processor defined, and that tiny, short and long were
- >of standard size. ie.
- >
- > 16 bit 32 bit 64 bit
- >tiny 8 8 8
- >short 16 16 16
- >long 32 32 32
- >long long (64) (64) 64
- >
- >int 16 32 64
- >
- >with pointers implementation dependent.
- >
- >no?
- >
- NO!
-
- The only guarantees are that
-
- long >= int >= short >= char
-
- (I haven't seen a definition of "long long" -ugh! but I think it is safe to
- assume that
- long long >= long)
-
- After all where would your definitions leave computers with word lengths of
- 24, 36, 48 or 60 bits? Or character lengths of 6, 7, 9, 12, or 15?
- I've had to deal with all of these at one stage or another.
-
- And it isn't all ancient history, either. Windows-NT uses Unicode as its native
- character set, requiring 16 bit characters.
-
- This is a language problem rather than an implementation one. Sensible
- languages let you declare the range of values you need, and let the compiler
- work out how many bits that needs.
- --
- ----------
- Blair Phillips Blair.Phillips@cao.mts.dec.com
- Digital Equipment Corp (Aust) P/L Phone: (+61 6) 2754874
- 7-11 Barry Drive, Turner, ACT 2601 AUSTRALIA FAX : (+61 6) 2473654
-
-