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

Implement link-time garbage collection #26

Open
5 tasks
bitwalker opened this issue Sep 22, 2023 · 0 comments
Open
5 tasks

Implement link-time garbage collection #26

bitwalker opened this issue Sep 22, 2023 · 0 comments
Labels
linker This issue pertains to the linker todo This is a task related to an incomplete feature

Comments

@bitwalker
Copy link
Contributor

The implementation of the linker in #24 left a few things undone because they aren't critical to an MVP release. Namely, garbage collection of unused (dead) objects discovered at link-time.

Items To Garbage Collect

1 Only when the program being linked is an executable program. When linking a library, we must assume all objects with external linkage are used.
2 Objects with internal (or ODR) linkage are always candidates for garbage collection if there are no references from live objects.

This task is relatively low priority, but is a relatively straightforward task to tackle when we have time.

@bitwalker bitwalker added todo This is a task related to an incomplete feature linker This issue pertains to the linker labels Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linker This issue pertains to the linker todo This is a task related to an incomplete feature
Projects
None yet
Development

No branches or pull requests

1 participant