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

Compile with unaligned-scalar-mem feature #29

Merged
merged 1 commit into from
Nov 22, 2024
Merged

Compile with unaligned-scalar-mem feature #29

merged 1 commit into from
Nov 22, 2024

Conversation

swenson
Copy link
Collaborator

@swenson swenson commented Nov 21, 2024

This optimizes memory reads and writes so that they don't have to be aligned, as this is not required for our CPU.

This saves abot 3 KB of instruction space in the runtime binary.

The VeeR CPU also supports bit manipulation instructions, but we don't have complete support for those in the emulator, so I left that as a TODO. That saves a few hundred bytes more (for now).

This optimizes memory reads and writes so that they don't have to be
aligned, as this is not required for our CPU.

This saves abot 3 KB of instruction space in the runtime binary.

The VeeR CPU also supports bit manipulation instructions, but we don't
have complete support for those in the emulator, so I left that as a
TODO. That saves a few hundred bytes more (for now).
@swenson
Copy link
Collaborator Author

swenson commented Nov 22, 2024

Thanks!

@swenson swenson merged commit 2e505ec into main Nov 22, 2024
1 check passed
@swenson swenson deleted the optimizations branch November 22, 2024 21:37
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.

2 participants