We are working on a project in Wizard that handles the earliest functions in a Wasm module specially. Unfortunately wasm-opt seems to reorder all the functions. Some of our functions really need to be first. We noticed that there is a --preserve-type-order option, which helps our use case, but we need something similar for functions. Is this something that could be added to binaryen? @titzer
We are working on a project in Wizard that handles the earliest functions in a Wasm module specially. Unfortunately
wasm-optseems to reorder all the functions. Some of our functions really need to be first. We noticed that there is a--preserve-type-orderoption, which helps our use case, but we need something similar for functions. Is this something that could be added to binaryen? @titzer