It is my first example of web assembly. I decided to create a simple page that calculates your uk tax income ...
emcc ukTaxCalculator.c -o output/ukTaxCalculator.js
Then, please run a local webserver. (I use "GOLive" in VCode, but can use a python web server ... you cn find it below).
Finally, load the pages/UKTaxCalculator.html page on your browser.
emcc helloworld.c -o hello.html
emcc helloworld.c -o output/hello5.html --shell-file ./html_template/my_template.html -s NO_EXIT_RUNTIME=1 -s "EXPORTED_RUNTIME_METHODS=['ccall']"
emcc helloworld.c -o output/hello5.html --shell-file ./html_template/my_template.html -s NO_EXIT_RUNTIME=1 -s "EXPORTED_RUNTIME_METHODS='ccall','cwrap'"
python3 -m http.server --cgi 8080
https://developer.mozilla.org/en-US/docs/WebAssembly/C_to_wasm