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

Avoid using RELOCATABLE by default when building with MAIN_MODULE #16507

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Mar 16, 2022

By building main module as non-relocatable we can improve the code size
and performance of the main module. There is no good reason to build
the main module as relocatable, only the side module really need this.

One downside is that this reduces our coverage of the RELOCATABLE
option to just a few isolated test cases. I wonder if we should consider
removing this option unless there are other compelling use cases?

This change depends and llvm-side change: https://reviews.llvm.org/D91577

@sbc100 sbc100 force-pushed the main_module_static branch from 235c12b to 9ba8a7e Compare March 16, 2022 20:44
@sbc100 sbc100 force-pushed the main_module_static branch from 9ba8a7e to b89c7af Compare March 29, 2022 22:30
By building main module as non-relocatable we can improve the code size
and performance of the main module.  There is no good reason to build
the main module as relocatable, only the side module really need this.

One downside is that this reduces our coverage of the `RELOCATABLE`
option to just a few isolated test cases. I wonder if we should consider
removing this option unless there are other compelling use cases?

This change depends and llvm-side change: https://reviews.llvm.org/D91577
@sbc100 sbc100 force-pushed the main_module_static branch from b89c7af to 6308498 Compare March 29, 2022 22:31
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.

1 participant