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

emacs/bcode: x86 asm version of eval #13

Open
quasilyte opened this issue Nov 13, 2017 · 0 comments
Open

emacs/bcode: x86 asm version of eval #13

quasilyte opened this issue Nov 13, 2017 · 0 comments

Comments

@quasilyte
Copy link
Owner

For x86_64 platform it can make sense to write main loop in asm.
Performance differences should be measured to make a final decision.

The best manual asm advantages:

  1. can be sure that sp, code and other important variables always stored inside registers.
  2. dispatching via computed goto ("threaded" interpretation).

I expect at least 30% speedup from this re-write.
Before doing this, whole instruction should be handled inside normal Go implementation.

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