English | 简体中文
wasm-c-demo is a simple C WASM demo, Mainly demonstrates that Js calls C functions, emulates various types pointer that match C pointer through the emscripten API, and pass data through the pointer.
First you need to install emscripten toolchain, see Getting Started
Install node modules
npm install
Build c to webassembly
npm run build
run the demo on Node
npm run dist
run the demo on browser
npm run html