What's the difference between a word and byte?

后端 未结 14 2220
再見小時候
再見小時候 2020-12-12 09:50

I\'ve done some research. A byte is 8 bits and a word is the smallest unit that can be addressed on memory. The exact length of a word varies. What I don\'t understand is wh

14条回答
  •  渐次进展
    2020-12-12 10:10

    A word is the size of the registers in the processor. This means processor instructions like, add, mul, etc are on word-sized inputs.

    But most modern architectures have memory that is addressable in 8-bit chunks, so it is convenient to use the word "byte".

提交回复
热议问题