Program Counter

Why Trust Techopedia

What Does Program Counter Mean?

A program counter (PC) is a CPU register in the computer processor which has the address of the next instruction to be executed from memory. It is a digital counter needed for faster execution of tasks as well as for tracking the current execution point.

Advertisements

A program counter is also known as an instruction counter, instruction pointer, instruction address register or sequence control register.

Techopedia Explains Program Counter

All instructions as well as data in memory have a specific address. As each instruction is processed, the software application responsible updates the program counter with the upcoming instructions’ address which needs to be fetched. The program counter in turn passes this information to the memory address register as part of the execution cycle/standard fetch. The program counter increases the stored value by one as the next instruction is fetched. If the computer is reset or restarts, the program counter usually reverts to the value of zero.

Similar to other process registers of the computer, the program counter is like a bank of binary latches, with each representing one bit of value. The program counter works in combination with other registers to identify the current instruction. It can be modified or accessed with the help of access or jump instructions. The PC can be accessed/modified by jump and branch instructions. Therefore, the destination address can be loaded to the program counter via branch instructions. The program counter can also be loaded with the address using the data processing instructions.

Advertisements

Related Terms

Margaret Rouse
Technology Specialist
Margaret Rouse
Technology Specialist

Margaret is an award-winning writer and educator known for her ability to explain complex technical topics to a non-technical business audience. Over the past twenty years, her IT definitions have been published by Que in an encyclopedia of technology terms and cited in articles in the New York Times, Time Magazine, USA Today, ZDNet, PC Magazine, and Discovery Magazine. She joined Techopedia in 2011. Margaret’s idea of ​​a fun day is to help IT and business professionals to learn to speak each other’s highly specialized languages.