Go4Expert (http://www.go4expert.com/)
-   Programming (http://www.go4expert.com/forums/programming-forum/)
-   -   Bits length. (http://www.go4expert.com/forums/bits-length-t6276/)

xsoso_lpfan 10Sep2007 17:10

Bits length.
Why in computers the bits length is always a power of two. 8 - 16 - 32 - 64 - 128 - 256...
why not 5 6 7? what's the difference? could I please get an informative answer?


DaWei 11Sep2007 02:19

Re: Bits length.
The basic group length is a byte. From the hardware design point of view it makes sense to use multiples of a byte when increasing size. Your statement isn't strictly true, however. 12-bit addresses were common in the early days of microprocessors. The Zilog Z8000 had a 24-bit address bus. Some floating-point representations also had oddball numbers of bits. As a matter of fact, a byte is not always 8 bits.

xsoso_lpfan 11Sep2007 22:13

Re: Bits length.
I know that such machines existed, but nobody considers them no more. Is there any mathematical or usage reason that the standard is 8bits multiplications.

What I mean is, suppose it wasn't multiplies of 8, would there be something that cannot be calculated or done for mathematical, electrical or hardware reasons?

thank u for answering:)

xsoso_lpfan 11Sep2007 22:19

Re: Bits length.
Ah yes. Why a byte isn't 8 bits? I learned in a PDP-11 course, in which they stated that Byte=8bits , but a Word is machine dependant.

Correct me if I'm wrong... It's just that it drove me mad thinking about why it's usually a power of two.

All times are GMT +5.5. The time now is 16:18.