Multiplication by a Constant

Source Code

Available on github. Some background.

Builds

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

Windows

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 127.0.0.1 --cgi

Then open http://127.0.0.1:8080/cgi-bin/constdivmul in your browser.