mooigraph 47ab7436c5 md update %!s(int64=3) %!d(string=hai) anos
..
0m.sh 37a78aaf46 websfg sfg.c first version running in browser %!s(int64=3) %!d(string=hai) anos
Lindent adadb614f6 wasm malloc update %!s(int64=3) %!d(string=hai) anos
README.md 37a78aaf46 websfg sfg.c first version running in browser %!s(int64=3) %!d(string=hai) anos
clib.c 37a78aaf46 websfg sfg.c first version running in browser %!s(int64=3) %!d(string=hai) anos
dlmalloc.c adadb614f6 wasm malloc update %!s(int64=3) %!d(string=hai) anos
errno.h adadb614f6 wasm malloc update %!s(int64=3) %!d(string=hai) anos
graph2svg.c 47ab7436c5 md update %!s(int64=3) %!d(string=hai) anos
graph2svg.wasm 37a78aaf46 websfg sfg.c first version running in browser %!s(int64=3) %!d(string=hai) anos
index.html 37a78aaf46 websfg sfg.c first version running in browser %!s(int64=3) %!d(string=hai) anos
jquery-3.6.0.js d3d429a0e3 wasm sfg.c added %!s(int64=3) %!d(string=hai) anos
malloc.c adadb614f6 wasm malloc update %!s(int64=3) %!d(string=hai) anos
malloc.h adadb614f6 wasm malloc update %!s(int64=3) %!d(string=hai) anos
sfg.c d3d429a0e3 wasm sfg.c added %!s(int64=3) %!d(string=hai) anos
sfg.h d3d429a0e3 wasm sfg.c added %!s(int64=3) %!d(string=hai) anos
site.js 37a78aaf46 websfg sfg.c first version running in browser %!s(int64=3) %!d(string=hai) anos
stddef.h adadb614f6 wasm malloc update %!s(int64=3) %!d(string=hai) anos
stdio.h adadb614f6 wasm malloc update %!s(int64=3) %!d(string=hai) anos
stdlib.h 37a78aaf46 websfg sfg.c first version running in browser %!s(int64=3) %!d(string=hai) anos
string.h adadb614f6 wasm malloc update %!s(int64=3) %!d(string=hai) anos
unistd.h adadb614f6 wasm malloc update %!s(int64=3) %!d(string=hai) anos

README.md

wasmtest01

test compiling c to wasm emscripten using clang-8 and ./0m shell script

graph2svg.wasm creates svg image data inlined in the html page when pressing button.

The javascript checks for too much text in the textarea.

because graph2svg.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()

This is a test version with bugs to be fixed.

end.