Liste des Groupes | Revenir à c misc |
D <nospam@example.net> wrote:Ahh.. so maybe my memory did come up with something then! =) Thank you for the clarification.[-- text/plain, encoding 8bit, charset: UTF-8, 36 lines --]>
>
>
>
On Thu, 8 Aug 2024, Dan Purgert wrote:
>On 2024-08-07, Lawrence D'Oliveiro wrote:>On 07 Aug 2024 15:04:21 GMT, Aharon Robbins wrote:>
>A CS professor I know told me this last week:>
>
I'm one of the very few that teach Systems. It amazes me
that our PhD students almost all in AI have never heard of a
program counter.
“Program counter” ... is that a von Neumann thing?
It's the thing that holds the address of the current instruction
being executed.
>
Effectively, CPU's operate like this loop here
>
int pc=0;
while (1) {
execute_instruction (pc);
pc++;
}
>
After that, 'execute_instruction' can be thought of as a big
conditional statement that actually performs the task -- moving data
between CPU registers, reading from RAM, whatever.
Could it have been called instruction counter on some platforms? My
memory is very hazy but I vaguely remember a register you could
manipulate directly from my assembler labs and the long gone days
when I thought computer viruses were interesting.
Some architectures named it "program counter", others used the name
"instruction pointer", still others likely used "instruction counter".
If one searched through much of computer architecture history I'd say
one could find a least a half dozen names for it (used by different
architectures) if not more.
>
Les messages affichés proviennent d'usenet.