Multiplication by a Constant

Source Code

Available on github. Some background.


Command-line applications. Also work as cgi-bin applications for a web server.


Ubuntu (WSL2)

WebAssembly application embedded in a static html page. Should work with modern browsers supporting the WebAssembly standard.

Static HTML

Web server setup

The constdivmul code generator also works as a cgi-bin application. Simply place one of the binaries above in the cgi-bin directory of your web server. Set the executable permissions (chmod 755).

To run a web server on a local machine with cgi-bin support, one of the options is python:

python -m http.server 8080 --bind --cgi

Then open in your browser.