mooigraph a2732f9b6a next c wasm test added 3 년 전
..
0m.sh a2732f9b6a next c wasm test added 3 년 전
README.md a2732f9b6a next c wasm test added 3 년 전
index.html a2732f9b6a next c wasm test added 3 년 전
jquery-3.6.0.js a2732f9b6a next c wasm test added 3 년 전
lenstr.c a2732f9b6a next c wasm test added 3 년 전
lenstr.wasm a2732f9b6a next c wasm test added 3 년 전
site.js a2732f9b6a next c wasm test added 3 년 전

README.md

wasmtest01

test compiling c to wasm without c-lib or emscripten using clang-7 and ./0m shell script

lenstr.wasm print length of string in the textarea on console log after pressing button

because lenstr.wasm uses wasm memory add linker flag -Wl,--import-memory to clang

It needs lld package installed and python webserver but not thttpd

python -m SimpleHTTPDServer

Then browse to localhost:8000

Using firefox developers console to see output from console.log()

end.