diff --git a/examples/wasm/demo.sh b/examples/wasm/demo.sh new file mode 100644 --- /dev/null +++ b/examples/wasm/demo.sh @@ -0,0 +1,3 @@ +emcc -O3 hello.c -o hello.cjs +ant hello.cjs +rm hello.cjs hello.wasm \ No newline at end of file diff --git a/examples/wasm/hello.c b/examples/wasm/hello.c new file mode 100644 --- /dev/null +++ b/examples/wasm/hello.c @@ -0,0 +1,6 @@ +#include + +int main() { + printf("hello, world!\n"); + return 0; +} \ No newline at end of file