Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the relationship of the bit bit/byte/word in the computer?

2025-02-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

The main content of this article is to explain "what is the relationship between the bit/byte/word in the computer". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Next, let the editor take you to learn "what is the relationship of the bit/byte/word in the computer?"

To guide the relationship between bit, byte and word in the computer, we should start from the definition.

Median (bit), byte (byte), word (word) definition

1. Bit (bit)

From the English bit, transliterated as "bit", indicating the binary bit. Bit is the smallest unit of data storage in the computer, and 11010100 is an 8-bit binary number. One binary bit can only represent 0 and 1 states (21); two binary bits can represent 00, 01, 10, 11 four (22) states; three binary numbers can represent eight states (23). No, no, no.

2. Bytes (byte)

The byte comes from the English Byte and is transliterated as "Beit". It is customary to express it with a capital "B". Bytes are the basic unit of data processing in a computer. In a computer, information is stored and interpreted in bytes, specifying that a byte consists of eight binary bits, that is, one byte equals eight bits (1Byte=8bit). The minimum octet binary number is 00000000 and the maximum is 11111111; usually one byte can be stored in an ASCII code and two bytes can store a Chinese character GB code.

3. Character

When a computer processes data, the length of data that is accessed, processed and transmitted at one time is called word. A word usually consists of one or more (usually integer bits of bytes) bytes. For example, the word of 286 microcomputer is composed of 2 bytes, the word length of 16x 486 microcomputer is composed of 4 bytes, and its word length is 32 bits. The word length of the computer determines the actual number of digits processed by its CPU operation, so it can be seen that the larger the word length of the computer is, the better its performance is.

An ascll code is a byte because the binary range of an ascll code is 0 to 11111111 and the decimal range is 0 to 11111111

Unicode refers to the way UCS-2 is encoded, with a length of two bytes.

Utf-8 is a variable length encoding. It can use 1 to 4 bytes to represent a symbol, and the byte length varies according to different symbols.

Utf-16 has the advantage that most characters are stored in fixed-length bytes (2 bytes), but UTF-16 is not compatible with ASCLL encoding

UTF-32 (or UCS-4) is stored at a fixed length of 4 bytes

Each byte file is stored in the agreed encoding.

Relationship between median (bit), byte (byte), word (word)

1. Bit: bit

A binary data of 0 or 1, which is 1bit

2. Byte: byte

The basic unit of measurement of storage space, such as VARCHAR (45) defined in MySQL, refers to 45 bytes.

1 byte = 8 bit

3. One English character occupies one byte (depending on encoding)

1 letter = 1 byte = 8 bit

4. A Chinese character accounts for 2 bytes (depending on the code)

1 Chinese character = 2 byte = 16 bit

At this point, I believe you have a deeper understanding of "what is the relationship between the bit/byte/word in the computer". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report