Home  >  Article  >  What is the instruction counter used to store?

What is the instruction counter used to store?

尚
Original
2020-03-19 13:18:016493browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn