You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import from compiled wasm should parse wasm binary and generate an internal structure of module.
this will allow conditional import of desired part of the module. imported wasm modules can be linked dynamically or statically. While linking statically, offsets of function index, import index, call index etc. need to be adjusted.
unwanted functions from imported wasm should be removed and combine in to one wasm output.
Notes: All declare syntax outside library source should allocate imports. import from wasm binary need a wasm binary parser.
import strategy
Static linking
if a function is declared and available in binary importer ---> no import
if a function is declared and not available in binary importer ---> import