Advantage: more compact WASM code, plus access of existing libs.
When you've written a new code module in a language like C/C++, you can compile it into WebAssembly using a tool like Emscripten.
Compiling a New C/C++ Module to WebAssembly - WebAssembly | MDN
Compiling an Existing C Module to WebAssembly - WebAssembly | MDN
How to Compile C code into WebAssembly with Emscripten – The New Stack
alternative:
Bare metal WASM with C using Clang - no stdlib; no emscripten - Demo - YouTube
No comments:
Post a Comment