Why are 8 and 256 such important numbers in computer sciences?

前端 未结 10 686
自闭症患者
自闭症患者 2021-02-05 07:41

I don\'t know very well about RAM and HDD architecture, or how electronics deals with chunks of memory, but this always triggered my curiosity: Why did we choose to stop at 8 bi

10条回答
  •  清酒与你
    2021-02-05 08:17

    We normally count in base 10, a single digit can have one of ten different values. Computer technology is based on switches (microscopic) which can be either on or off. If one of these represents a digit, that digit can be either 1 or 0. This is base 2.

    It follows from there that computers work with numbers that are built up as a series of 2 value digits.

    • 1 digit,2 values
    • 2 digits, 4 values
    • 3 digits, 8 values etc.

    When processors are designed, they have to pick a size that the processor will be optimized to work with. To the CPU, this is considered a "word". Earlier CPUs were based on word sizes of fourbits and soon after 8 bits (1 byte). Today, CPUs are mostly designed to operate on 32 bit and 64 bit words. But really, the two state "switch" are why all computer numbers tend to be powers of 2.

提交回复
热议问题