简体   繁体   中英

Do Webassembly instances run an entry point function?

I am asking a very technical question, when you instantiate a web assembly module, in javascript, does any of the webassembly functions actually get executed before you recieve the instance, or is the webassembly code purely a library, in that after instantiating it you must run any of the exports manually, and no exports or functions in the webassembly, such as a starting point, are implicitly run?

If webassembly ever gets added to the html directly, in future versions, what would the entrypoint of the webassembly module be?

Webassembly instances have a (start) section that expresses the entry-point of the webassembly module if there is one.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM