Skip to content

Conversation

vouillon
Copy link
Collaborator

Binaryen's binary parser currently enforces a limit of 50 000 locals per function (see WebAssembly/binaryen#6677). To avoid reaching this limit, this first compiles the generated code with wasm-opt with a limited number of optimization passes before calling wasm-merge. Otherwise, wasm-merge (which does not perform any optimization) can produce a binary with an overly large number of locals, that will be rejected by other binaryen tools.

Binaryen's binary parser currently enforces a limit of 50 000 locals per function (see WebAssembly/binaryen#6677). To avoid reaching this limit, this first compiles the generated code with wasm-opt with a limited number of optimization passes before calling wasm-merge. Otherwise, wasm-merge (which does not perform any optimization) can produce a binary with an overly large number of locals, that will be rejected by other binaryen tools.
@vouillon
Copy link
Collaborator Author

vouillon commented Oct 9, 2024

This is fixed by WebAssembly/binaryen#6973

@vouillon vouillon closed this Oct 9, 2024
@vouillon vouillon deleted the local-variables branch December 5, 2024 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant