bjorn3 opened Issue #2220:
Feature
<!-- What is the feature or code improvement you would like to do in
Cranelift/Wasmtime? -->Add a method to cranelift-module that defines a data object without creating a new symbol.
Benefit
<!-- What is the value of adding this in Cranelift/Wasmtime? -->
Avoiding symbols for anonymous data objects improves linker times.
Implementation
<!-- Do you have an implementation plan, and/or ideas for data structures or
algorithms to use? -->For
cranelift-simplejit
symbol names are unused for everything except for imports and exports already. Forcranelift-object
the data object could be added to the right section and then the section id and offset could be stored to generate the right relocations in the future.Alternatives
<!-- Have you considered alternative implementations? If so, how are they
better or worse than your proposal? -->
UsingLinkage::Local
requires you to generate an unique name and has a negative impact on compilation times.
pchickey commented on Issue #2220:
Seems reasonable to me
bnjbvr labeled Issue #2220:
Feature
<!-- What is the feature or code improvement you would like to do in
Cranelift/Wasmtime? -->Add a method to cranelift-module that defines a data object without creating a new symbol.
Benefit
<!-- What is the value of adding this in Cranelift/Wasmtime? -->
Avoiding symbols for anonymous data objects improves linker times.
Implementation
<!-- Do you have an implementation plan, and/or ideas for data structures or
algorithms to use? -->For
cranelift-simplejit
symbol names are unused for everything except for imports and exports already. Forcranelift-object
the data object could be added to the right section and then the section id and offset could be stored to generate the right relocations in the future.Alternatives
<!-- Have you considered alternative implementations? If so, how are they
better or worse than your proposal? -->
UsingLinkage::Local
requires you to generate an unique name and has a negative impact on compilation times.
bnjbvr labeled Issue #2220:
Feature
<!-- What is the feature or code improvement you would like to do in
Cranelift/Wasmtime? -->Add a method to cranelift-module that defines a data object without creating a new symbol.
Benefit
<!-- What is the value of adding this in Cranelift/Wasmtime? -->
Avoiding symbols for anonymous data objects improves linker times.
Implementation
<!-- Do you have an implementation plan, and/or ideas for data structures or
algorithms to use? -->For
cranelift-simplejit
symbol names are unused for everything except for imports and exports already. Forcranelift-object
the data object could be added to the right section and then the section id and offset could be stored to generate the right relocations in the future.Alternatives
<!-- Have you considered alternative implementations? If so, how are they
better or worse than your proposal? -->
UsingLinkage::Local
requires you to generate an unique name and has a negative impact on compilation times.
github-actions[bot] commented on Issue #2220:
Subscribe to Label Action
cc @bnjbvr
<details>
This issue or pull request has been labeled: "cranelift"Thus the following users have been cc'd because of the following labels:
- bnjbvr: cranelift
To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.
Learn more.
</details>
cfallin closed Issue #2220:
Feature
<!-- What is the feature or code improvement you would like to do in
Cranelift/Wasmtime? -->Add a method to cranelift-module that defines a data object without creating a new symbol.
Benefit
<!-- What is the value of adding this in Cranelift/Wasmtime? -->
Avoiding symbols for anonymous data objects improves linker times.
Implementation
<!-- Do you have an implementation plan, and/or ideas for data structures or
algorithms to use? -->For
cranelift-simplejit
symbol names are unused for everything except for imports and exports already. Forcranelift-object
the data object could be added to the right section and then the section id and offset could be stored to generate the right relocations in the future.Alternatives
<!-- Have you considered alternative implementations? If so, how are they
better or worse than your proposal? -->
UsingLinkage::Local
requires you to generate an unique name and has a negative impact on compilation times.
Last updated: Dec 23 2024 at 12:05 UTC