Program Counter

Program Counter

Der Programmschrittzähler oder auch Befehlszähler (engl. program counter, kurz PC oder instruction pointer, kurz IP) ist ein spezielles Register innerhalb der CPU eines Computers, das je nach Systemarchitektur die Speicheradresse des derzeitigen oder des nächsten auszuführenden Befehls enthält.

Wurde ein Befehl erfolgreich ausgeführt, geht der Computer in der Befehlsfolge des Programms weiter: die CPU liest von der im Programmschrittzähler angegebenen Speicheradresse den nächsten Befehl aus, erhöht den Zähler und führt den Befehl aus.

Handelt es sich dabei um einen Sprungbefehl (jump), so wird der Zeiger entsprechend gesetzt. Bei einer Verzweigung (etwa der Aufruf eines Unterprogrammes) wird bei den meisten Prozessorfamilien der Programmschrittzähler auf dem Stack gesichert und die Verarbeitung an der Speicheradresse des Unterprogramms fortgesetzt. Nach Beendigung des Unterprogramms wird der Programmschrittzähler wieder mit dem Wert aus dem Stack auf den vorherigen Wert zurückgesetzt und die Ausführung an der ursprünglichen Stelle fortgesetzt.


Wikimedia Foundation.

Игры ⚽ Поможем сделать НИР

Schlagen Sie auch in anderen Wörterbüchern nach:

  • Program counter — The program counter, or shorter PC (also called the instruction pointer, part of the instruction sequencer in some computers) is a register in a computer processor which indicates where the computer is in its instruction sequence. Depending on… …   Wikipedia

  • program counter — komandų skaitiklis statusas T sritis automatika atitikmenys: angl. command counter; control counter; control register; instruction address register; instruction counter; operation address register; program counter; program address counter;… …   Automatikos terminų žodynas

  • Program counter — Der Programmschrittzähler oder auch Befehlszähler (engl. program counter, kurz PC oder instruction pointer, kurz IP) ist ein spezielles Register innerhalb der CPU eines Computers, das je nach Systemarchitektur die Speicheradresse des derzeitigen… …   Deutsch Wikipedia

  • program counter — programos skaitiklis statusas T sritis informatika apibrėžtis ↑Centrinio procesoriaus ↑registras (3), kuriame laikomas tolesnės komandos ↑adresas. Kai baigiama vykdyti komanda, tolesnė komanda imama iš skaitiklio rodomo adreso, o programos… …   Enciklopedinis kompiuterijos žodynas

  • program counter — noun A register that stores the address of the current (or next) instruction to be carried out by the processor. Syn: instruction pointer …   Wiktionary

  • program counter — register that stores the number of the next command to be performed …   English contemporary dictionary

  • program-address counter — komandų skaitiklis statusas T sritis automatika atitikmenys: angl. command counter; control counter; control register; instruction address register; instruction counter; operation address register; program counter; program address counter;… …   Automatikos terminų žodynas

  • Counter-recruitment — is a strategy often taken up to oppose war. Counter recruitment is an attempt to prevent military recruiters from enlisting civilians into the military. There are several methods commonly utilized in a counter recruitment campaign, ranging from… …   Wikipedia

  • Counter-Strike: Source — Developer(s) Valve Corporation Hidden Path Entertainment (develops updates since mid 2010[1] and will continue even after the release of …   Wikipedia

  • Counter-Revolutionary Violence — Bloodbaths in Fact Propaganda   Author(s) Edward S. Herman …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”