Skip to content

wasm-split support for memory64 #7716

@wenhanchong

Description

@wenhanchong

Please include the following in your bug report:

Version of emscripten/emsdk:

emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 4.0.10 (b7dc6e5747465580df5984e723b9d1f10d8e804b)
clang version 21.0.0git (https:/github.com/llvm/llvm-project 8f7e57485ee73205e108d74abb5565d5c63beaca)
Target: wasm32-unknown-emscripten
Thread model: posix

Failing command line in full:
If this is compile or link-time failure please include the full failing command
along with its entire output.

wasm-split: /home/chongw/binaryen/src/literal.h:288: int32_t wasm::Literal::geti32() const: Assertion `type == Type::i32' failed.
rebuild.sh: line 30:  4052 Aborted                 (core dumped) /home/chongw/binaryen/bin/wasm-split --enable-mutable-globals --export-prefix=% build/main.wasm.orig -o1 build/main.wasm -o2 build/main.deferred.wasm --profile=build/profile.data --enable-memory64 --verbose

Unable to run wasm-split for wasm built with -sMEMORY64=1 even with wasm-split --enable-memory64 flag.
Sample app attached.

wasmsplit_memory64.zip

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions