Skip to content

TheoXiong/wasm-c-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wasm-c-demo

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.

Usage

Install Emscripten

First you need to install emscripten toolchain, see Getting Started

Run Demo

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