putting-the-you-in-cpu icon indicating copy to clipboard operation
putting-the-you-in-cpu copied to clipboard

Should I mention PC?

Open kognise opened this issue 1 year ago • 1 comments

From dreamcompiler on HN:

"The CPU stores an instruction pointer which points to the location in RAM where it’s going to fetch the next instruction."

This is also called the Program Counter or PC outside the Intel universe. This is confusing as "PC" also stands for "Personal Computer" but people who learned computing in the days before Intel became popular still call it the PC register.

My response:

I know about the Program Counter terminology, and explicitly chose not to use it to be more architecture-independent... but maybe it was a mistake not mentioning it at all, considering it's such absurdly prevalent terminology.

kognise avatar Aug 10 '23 13:08 kognise

people who learned computing in the days before Intel became popular still call it the PC register.

In this context, PC stands for Program Counter. Therefore, is the terminology "Program Counter" not ubiquitous?

Is the idea that folks who call it the "PC register" don't understand that "PC" in "PC register" stands for "Program Counter"? Seems unlikely.

Regardless, this can be cleared up with a simple "Program counter (commonly abbreviated as PC)" if you want to be super careful.

benjamin051000 avatar Dec 06 '23 16:12 benjamin051000