Words, Word length, bytes, bits

Source: Internet
Author: User

It's always confusing, and now I'm going to fix it:

Words, Word length, bytes, bits

Word:

Bit (bit): represents a binary digit 0 or 1, which is the most basic unit of computer storage processing information.

Byte (byte): One byte consists of 8 bits. It represents 8 binary digital as a complete processing unit. Now the use of the "National Information Interchange Standard Code"--ASCII coding (by the U.S. National Standards Committee)

For example: The binary encoding of the character "A" is "0100 0001" i.e. 41H or 65D

The binary code for "#" is "0010 0011" i.e. 23H or 35D

Word: 16 bits is a word (that is, two bytes is a word), it represents the computer processing instructions or data binary digits, is the computer for data storage and processing units. Usually called 16 bits is a word, 32 bits is a double word, 64 bits is two double word.


Word Length: The number of digits is called length. , different grades of machines have different word lengths. For example, a 8-bit machine, its 1 characters equals 1 bytes, and the word length is 8 bits. If it is a 16-bit machine, its 1 characters are made up of 2 bytes, with a word length of 16 bits.

the difference between byte and word length: Since the commonly used English characters are represented by 8-bit binary, the 8 bits are usually referred to as one byte. The length of the word word is not fixed, and for different CPUs, the length of word lengths is not the same. A 8-bit CPU can handle only one byte at a time, while a 32-bit CPU can handle 4 bytes at a time, and a CPU with a 64-bit word length could handle 8 bytes at a time.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.