Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workaround for the local variable limits of binaryen's binary parser #83

Closed
wants to merge 1 commit into from

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant