Stream: git-wasmtime

Topic: wasmtime / issue #2368 Add -fdata-section support to cran...


view this post on Zulip Wasmtime GitHub notifications bot (Oct 01 2021 at 21:19):

akirilov-arm labeled issue #2368:

<!-- Please try to describe precisely what you would like to do in
Cranelift/Wasmtime and/or expect from it. You can answer the questions below if
they're relevant and delete this text before submitting. Thanks for opening an
issue! -->

Feature

This is the data object counterpart to https://github.com/bytecodealliance/wasmtime/pull/2218.

Benefit

Same as per_function_sections. From the description of #2218:

This makes it possible for the linker to omit unused functions when --gc-sections is passed.

For cg_clif the executable size savings are quite big. One example is 26MB when a single .text section is used, but 15MB when a single section for each function is used, which is the same as when compiled using cg_llvm. I will probably disable this in debug mode though as it significantly increases the linking time.

Implementation

Similar to #2218

Alternatives

N/A


Last updated: Nov 22 2024 at 17:03 UTC