What is the processor register?

The fastest approach to storage memory on the computer processing unit (CPU) is the processor register. Design computer architecture ability to memory the processor's memory to the CPU cache so that you can regularly store the values ​​of computer processes. Processes have access and perform quickly on the basis of these stored values. Because processor registers are stored on CPUs, they are considered the peak of the storage hierarchy and the assignment is usually determined by variables. After data processing, it is then restored to the cache, the memory of random access (RAM) or storing a hard disk.

Computer processors have registers of different types according to the instructions or tests that work on them or on their specific content. Data, addresses and general purpose registers contain mathematical values ​​and addresses for storing memory. There are conditional registers with the values ​​of truth for logical operating instructions, constant registers with only reading values ​​such as PI and Zero and registers of special purpose that uThey hold the program counter, status register and magazine indicators for using the storage memory. Control registers contain instructions from a set of instructions built into the CPU architecture; And there are several that load from RAM and CPU circuits that approach the memory memory, memory data, memory ranges and address ranges. The variables not bound to the processor register are stored in RAM and loaded in and out for read and write operations, but have a slower processing.

Knowledge of the speed difference between processing in registers and RAM, compiler developers usually design their programs to work as much as possible in the processor register for fast operation. For the programs of the Just-in-Time compiler, the technique of allocating the register known as linear allocation compositions for the allocation of scanning and Frees Up Reed Registration Rastit back to the program. Techniques Assign Registry with POKThey enhance as many variables as possible to the registers and in the operating stream that maximizes the smallest number of registers for fast compilations.

Since many processor registers are for temporary storage of variable and instructional sets, all operations for the use of the program can be stored for handling by CPU. In operation, the CPU first looks at the CPU registry cache for a copy of any data to be processed when reading, writing or moving operations before looking at RAM and secondary hard drive storage. Since 2011, most CPUs maintain three individual cache. The instruction cache is engaged in instructions, the translation memory accelerates the translations of the address for virtual-physical addresses, and the data cache holds the multi-level data hierarchy to be manipulated using the processor instruction kit.

IN OTHER LANGUAGES

Was this article helpful? Thanks for the feedback Thanks for the feedback

How can we help? How can we help?