Skip to content

Minimal demonstration of compiling a C++ source file to WebAssembly and running it in a web browser.

Notifications You must be signed in to change notification settings

tomcant/cpp-wasm-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C++ / WebAssembly Demo

This repo demonstrates compiling a C++ source file for execution in a web browser.

We use Emscripten to compile the source and generate a WebAssembly file (.wasm) that can be loaded via JavaScript in most modern browsers.

Run make to build and run the demo on http://localhost (this uses the emscripten/emsdk and nginx Docker images).

See the demo live on GitHub Pages at https://tomcant.dev/cpp-wasm-demo.

About

Minimal demonstration of compiling a C++ source file to WebAssembly and running it in a web browser.

Topics

Resources

Stars

Watchers

Forks