What's the difference between a word and byte?

后端 未结 14 2188
再見小時候
再見小時候 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:12

    A group of 8 bits is called a byte ( with the exception where it is not :) for certain architectures )

    A word is a fixed sized group of bits that are handled as a unit by the instruction set and/or hardware of the processor. That means the size of a general purpose register ( which is generally more than a byte ) is a word

    In the C, a word is most often called an integer => int

提交回复
热议问题