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

vm: implementing stack #4

Closed
wants to merge 1 commit into from
Closed

vm: implementing stack #4

wants to merge 1 commit into from

Conversation

kehiy
Copy link
Contributor

@kehiy kehiy commented Aug 12, 2024

I checked the readme and source code and I reached that this stack issue and push/pop opcodes have these purposes:

stack issue: you created it to implement a stack to use as a call stack (based on TODOs)
push/pop op codes: They are compiling into 2 op codes such as load memory, sub and add. so they are not meant to be stack operations, also this VM was not a stack machine at all.

Overall I reached that these changes must fix the open issue.

This PR contains some linting modifications. using builder for better performance. and some small changes on readme as well.

@kehiy
Copy link
Contributor Author

kehiy commented Aug 12, 2024

@obscuren You can review this now. 🫡

@kehiy kehiy closed this by deleting the head repository Sep 7, 2024
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

Successfully merging this pull request may close these issues.

vm: implement stack
1 participant