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

Decoder Improvements #16

Open
william-silversmith opened this issue Mar 21, 2024 · 0 comments
Open

Decoder Improvements #16

william-silversmith opened this issue Mar 21, 2024 · 0 comments

Comments

@william-silversmith
Copy link
Contributor

It might be possible to improve the decoding by handling multiple symbols at once.

currently: bitstream -> codepoints -> symbols -> vcg coloring

What if there was a lookup table of packed bytes to instructions?

bitstream -> vcg coloring

You handle one byte at a time (2-4 symbols) with a look back of 1 byte and look ahead of 1 byte to check if the edge symbols are part of a branch or term instruction. Excluding branch and term, 4 * 4 = 16 possible operations. Something like a table of function pointers?

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