Skip to main content

Posts

Showing posts from April 13, 2021

PROCESSOR REGISTERS

 The processor contains a set of registers that provide faster and smaller memory than the main memory. It provides two functions User-visible registers: Enable the machine or assembly language programmer to minimize main memory references by optimizing register use. For high-level languages, an optimizing compiler will attempt to make intelligent choices of which variables to assign to registers and which to main memory locations. Some high-level languages, such as C,allow the programmer to suggest to the compiler which variables should be held in registers. Control and status registers: It is used by the processor to control the operation of the processor and by privileged OS routines to control the execution of the program.      There is no clean division of registers in these two categories. For example, on some processors, the program counter is visible to the user, but for the most part it is not. For the purpose of the following discussion, however, it is convenient to use these

Contact form

Name

Email *

Message *