Home >Common Problem >What is the instruction counter used to store?
#There is a program counter (also known as the instruction counter) in the CPU, which is used to store the memory address of the next instruction to be executed.
In order to ensure that the program can be executed continuously, the CPU must have some means to determine the address of the next instruction. The program counter plays this role, so it is often called the instruction counter.
Before the program starts executing, its starting address, that is, the memory unit address where an instruction of the program is located, must be sent to the PC. Therefore, the content of the program counter (PC) is the next item fetched from the memory. The address of the instruction.
The above is the detailed content of What is the instruction counter used to store?. For more information, please follow other related articles on the PHP Chinese website!