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

Add byte and short types #3

Open
Hawkbat opened this issue Aug 9, 2018 · 0 comments
Open

Add byte and short types #3

Hawkbat opened this issue Aug 9, 2018 · 0 comments

Comments

@Hawkbat
Copy link
Owner

Hawkbat commented Aug 9, 2018

The types short, ushort, byte, and sbyte should be added, in order to facilitate memory-constrained operations (such as emulating an 8-bit CPU).

As WASM does not currently support signed i8 or i16 arithmetic, the types would need to be restricted to being used in struct fields only, or extra truncation operations would need to be generated during operations. I haven't decided yet if the truncation is worthwhile.

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