binaryen icon indicating copy to clipboard operation
binaryen copied to clipboard

[wasm-split] Allow splitting globals

Open biggs0125 opened this issue 6 months ago • 1 comments

The wasm-split tool only has support for splitting functions but it does not support splitting globals. Rather than leave every global in the main module as an export, ideally the tool could detect which globals are only used in specific submodules and split those out as well.

biggs0125 avatar Jul 15 '25 18:07 biggs0125

cc @aheejin.

This is also true of e.g. tables, memories, tags, etc.

tlively avatar Jul 15 '25 18:07 tlively