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

GC-like pointer to static and relocations handling #41

Open
grassator opened this issue May 24, 2021 · 0 comments
Open

GC-like pointer to static and relocations handling #41

grassator opened this issue May 24, 2021 · 0 comments
Labels
idea Weird, crazy ideas

Comments

@grassator
Copy link
Owner

Right now when access to a static value at runtime is detected, this value is eagerly copied into the data section of the executable with runtime relocations added along the way. This is bad as we might not capture the latest state of the value if it is mutable at compile time. Additionally it is quite awkward to handle.

Potentially better approach would be to gather up "root" values that need to be copied to runtime and use the descriptors to recursively copy them to the output when generating an executable.

@grassator grassator added the idea Weird, crazy ideas label May 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
idea Weird, crazy ideas
Projects
None yet
Development

No branches or pull requests

1 participant