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

Replace PROCESS's "command stack" with a program counter #15

Open
ecpeterson opened this issue Nov 12, 2020 · 0 comments
Open

Replace PROCESS's "command stack" with a program counter #15

ecpeterson opened this issue Nov 12, 2020 · 0 comments

Comments

@ecpeterson
Copy link
Contributor

It is unrealistic from the perspective of hardware to keep a full list of commands-to-be-executed for a running process. Rather, processors tend to carry a fixed set of instructions, a pointer to the current instruction step, as well as a list of pointers to past callsites to which the processor intends to return. This wildly reduces memory complexity, at the awkward expense of having to have a fixed "code segment" in memory.

We will ultimately move toward this model as we begin microarchitecture emulation. It is at least worth keeping this in mind as we work now, but ultimately this will turn into a proper task of enabling this kind of "program counter" tracking.

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

1 participant