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
As shown in wasm_application_execute_main(), in wasi mode, we should call function named "_start" firstly to trigger the real main().
I tried to build one .wasm which includes callings to C++ library, if execute with "./iwasm --function ABC abc.wasm", indeed exception is encountered. BTW, if the wasm implementation doesn't include callings to C++ library, there's no issue.
Looks like every .wasm shall be entered from the single entry "_start". Now I want to enable multi-module, in one module, how to call functions of other modules?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Dear there,
As shown in wasm_application_execute_main(), in wasi mode, we should call function named "_start" firstly to trigger the real main().
I tried to build one .wasm which includes callings to C++ library, if execute with "./iwasm --function ABC abc.wasm", indeed exception is encountered. BTW, if the wasm implementation doesn't include callings to C++ library, there's no issue.
Looks like every .wasm shall be entered from the single entry "_start". Now I want to enable multi-module, in one module, how to call functions of other modules?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions