| title | cpp-wasm-starter | |||
|---|---|---|---|---|
| date | 2026-04-28 | |||
| author | JoltWorks | |||
| tags |
|
Minimal starter project to build a WebAssembly binary from C++ source code.
Most of the artifacts (i.e., HTML, C++) are based on the works of other authors like Surma.
The dot files .clang-format, .clang-tidy, .editorconfig are from Google and I did some minor changes.
I put links to relevant sources in the respective files.
This project works fine on Ubuntu (WSL).
In your terminal, consider enterting these comands:
chmod +x setup.sh
sudo ./setup.sh
make runOpen a web browser and navigate to Console inside DevTools.
(You should see a 17 there.)