Skip to content

Can we turn off constant folding during the Wasmi bytecode translation phase? #1099

Closed Answered by Robbepop
Forpee asked this question in Q&A
Discussion options

You must be logged in to vote

I think you are referring to this issue concerning your question:
#1092

Constant folding is an integral part of Wasmi's bytecode translation. In fact it plays a crucial role in Wasmi bytecode compression since without it, Wasmi bytecode was required to be able to represent more states and thus being less (space) efficient. In other words: constant folding allows us to shrink the number of required Wasmi bytecode instructions significantly.

Where is your question coming from? What do you want to achieve by turning off constant folding?
You should be aware that constant folding is just one of many optimizations that Wasmi applies to Wasm bytecode during the translation procedure.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Robbepop
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants