Technical analysis: What is the difference between 64-bit and 32-bit chips?

According to records, the CPU bit refers to the amount of data that can be processed at one time, 1 byte = 8 bits, and the 32-bit processor can process 4 bytes of data at a time. By analogy, a 64-bit processor can process 8 bytes of data at a time, twice the processing rate of a 32-bit processor.

This article refers to the address: http://

Since Apple used the 64-bit A7 processor on the iPhone 5s, the number of bits in the mobile processor has naturally become the focus of attention. So what is the difference between a 64-bit processor and a 32-bit processor?

In fact, the concept of the number of bits in the mobile phone processor and the PC processor is the same, here I use the processor of the PC to illustrate. Some people who know something about the CPU probably know the Pentium3 and Pentium4. If you know more about it, you will know that the i386 processor brought the processor from 16 bits to the 32-bit era 20 years ago.

After nearly 30 years of testing, the processor has now jumped to 64-bit, which can increase the frequency from 1GHz to 3GHz. If the increase in frequency is to increase the speed limit of a 4-lane highway from 120 km to 360 km, then the upgrade from 32-bit to 64-bit is to widen the highway from the 4-lane speed limit by 3 times. In the 8 lanes, that is to say, the capacity of this road has doubled, which is a qualitative leap.

In fact, the value represented inside the computer has a range, and the decisive factor lies in the register of the CPU. He is the smallest unit of computer processing value. If the register is 32-bit, then the range of numbers that he can represent is at most 32 to the power of 32, that is, the range is 32 to 0 to 32, (this does not care about the original The code is still complement or frameshift. If the register is 64 bits, it is obvious that the range of representation is 64 0 to 64 1s.

The range of representation of the number is large, so the accuracy of the calculation is improved. Of course, this requires the support of the operating system, just like a sports car can run 300 kilometers per hour, but the driver will only open low-end, good resources are wasted.

In addition, I believe everyone knows that 32-bit systems can only recognize 4g of memory and 64-bit systems can recognize more than 4g of memory. That's because memory is made up of many small units. In order to get the data in memory, you need to number each unit, just like a home address. The unit number as the memory has a special register storage (professional term is mar). The maximum address that a 32-bit system can represent is 2 to the power of 32. Generally, a unit is 8 bits, that is, one byte. . Together, it is 4g of storage space, and the total number of unit addresses that the same 64-bit system can represent is 64 squares of 2.

Now there is another problem, that is why my computer is 4g memory, and the computer shows 3.xxG. In fact, because other storage devices also need space addresses, some addresses are allocated to other storage devices, so the address given to the memory is reduced, and the identified memory is naturally less than 4g. This is not the same as the hard disk. The actual capacity of the hard disk is less than the calibration capacity because it is convenient for industrial production. The manufacturer's standard is 1GB=1000MB and the scientific standard is 1GB=1024MB.

As for why 64-bit will be faster than 32-bit, it is because if a machine instruction is 32-bit, then the register is 64-bit and can take two instructions at a time, which is equivalent to a child and an adult grab something to eat, child Only four can be taken at a time, while adults can take eight.

Therefore, iPhone5s runs similarly. It obtains data from memory. 32-bit data can only process 32-bit data in one clock cycle, and 64-bit data can be obtained in 64-bit data. This speed, performance, and efficiency are improved. The main problem now is to speed up the development of 64-bit software, in order to maximize the performance of 64-bit processors.

Stylus Pen Tip

Stylus Pen Tip,Stylus Pencil Tip,Carbon Fiber Pen Tip,Carbon Fiber Stylus Pen Tip

Shenzhen Ruidian Technology CO., Ltd , https://www.wisonens.com