Skip to content

It is my first example of web assembly. I decided to create a simple page that calculates your tax income ...

License

Notifications You must be signed in to change notification settings

erreobi/uktaxincome

Repository files navigation

Uk_tax_income

It is my first example of web assembly. I decided to create a simple page that calculates your uk tax income ...

How to compile and run it

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.

examples

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'"

Run a WebServer on local

python3 -m http.server --cgi 8080

docs

Really good tutorial

Nice explanation tutorial

https://developer.mozilla.org/en-US/docs/WebAssembly/C_to_wasm

About

It is my first example of web assembly. I decided to create a simple page that calculates your tax income ...

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published