-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workaround for the local variable limits of binaryen's binary parser
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.
- Loading branch information
Showing
3 changed files
with
58 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters