Bit, byte, word

Bit (bit) <bytes (byte) <word
memory of the computer, the smallest unit of storage is the "bit ( 'bit)" ,. 8 th "bit" constitutes a " byte (byte) ", bytes of the memory of the basic unit also addressing unit ,

  • For example, a computer memory is 2GB, refers to the total memory of the computer 2 × 1024 × 1024 × 1024 bytes.

The stronger the performance of the computer, the more "bits" can be processed by one operation,

  • 16-bit arithmetic for example, a computer can handle 16 "bits", i.e., two "byte", referred to as a "word."
  • While the 32-bit computer 32 can handle one operation "bits", i.e., four "byte", referred to as a "word."

Therefore, a "word" several "byte" configuration related and computer models.

  • For example, 32-bit computer, a "word" is four "bytes."
  • The 16-bit computer, a "word" is the two "bytes."

PS: 32 bit compiler system, int account for long and four bytes . While the 64-bit operating system, int accounted for four bytes , in the range -2147483648 to 2147483647 (ten digits). long occupies 8 bytes , long range data becomes: -2 63 is ~ 2 63 is -1. (Long platform due differ, 4 bytes, 8 bytes and 6 bytes of three.)

Released two original articles · won praise 0 · Views 69

Guess you like

Origin blog.csdn.net/weixin_43965999/article/details/104099011