From e7b3b2b3880f1bbba0262bf253b92ce0975eeceb Mon Sep 17 00:00:00 2001 From: theMackabu Date: Mon, 20 Apr 2026 23:10:24 +0000 Subject: [PATCH] improve wasm demo --- examples/wasm/demo.sh | 3 +++ examples/wasm/hello.c | 6 ++++++ 2 file(s) changed, 9 insertion(s)(+), 0 deletion(s)(-) 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 -- tangled.sh