WebAssembly
Contents
Wasm
- WebAssembly (abbreviated Wasm) is a binary instruction format for a stack-based virtual machine. Wasm is designed as a portable compilation target for programming languages, enabling deployment on the web for client and server applications.
Use WebAssembly in JavaScript
compile c/c++/rust code
source code
|
|
emcc
|
|
fetch
- use fetch to load the wasm file
|
|
initiate
- call
WebAssembly.instantiate
- new api:
WebAssembly.compileStream
(not supported in nodejs 12.x)
|
|
execute
|
|