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

Drop and Store ASM subroutine may improve things #5

Open
drj11 opened this issue Oct 27, 2017 · 1 comment
Open

Drop and Store ASM subroutine may improve things #5

drj11 opened this issue Oct 27, 2017 · 1 comment

Comments

@drj11
Copy link
Owner

drj11 commented Oct 27, 2017

Many words, such as +, -, AND, have a common final part which DROPs then replaces the new TOS with RAX.

Consider factoring it.

@drj11
Copy link
Owner Author

drj11 commented Jan 13, 2018

Essentially the same observation suggests that storing TOS exclusively in a register would have similar benefit (operators like - would compute result and adjust stack; no store necessary).

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