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

Optimization: Add data segment #1639

Open
kevaundray opened this issue Jun 12, 2023 · 0 comments
Open

Optimization: Add data segment #1639

kevaundray opened this issue Jun 12, 2023 · 0 comments
Labels

Comments

@kevaundray
Copy link
Contributor

Problem

This should be done after all ssa refactoring issues have been addressed.

@guipublic initially added a reserved section in the bytecode for Trap and Stop here, so that other segments of the bytecode could reference it.

This is analogous to having a data segment in assembly.

The data segment stores constants and other relevant data that the rest of the bytecode can refer to.

Happy Case

This allows one to optimize the bytecode by remocing duplicated symbols.

This does however make linking a bit more involved since we want to link data segments when linking multiple artifacts together and avoid duplicate data in data segments

Alternatives Considered

No response

Additional Context

No response

Would you like to submit a PR for this Issue?

No

Support Needs

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants