Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should I mention PC? #29

Open
kognise opened this issue Aug 10, 2023 · 1 comment
Open

Should I mention PC? #29

kognise opened this issue Aug 10, 2023 · 1 comment

Comments

@kognise
Copy link
Member

kognise commented Aug 10, 2023

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.

@benjamin051000
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants