Skip to content

Docker images containing Emscripten toolchain and Wasmtime WebAssembly runtime.

Notifications You must be signed in to change notification settings

mziyabo/wasm-toolchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

WASM Toolchain

Toolchain image for Emscripten, a source-to-source compiler that runs as a back end to the LLVM compiler.

Usage: Create hello.cpp and compile to hello.wasm

New-item hello.cpp -Value "#include <iostream>
using namespace std;
int main() {
  cout << `"Hello World`" << endl;
}"

docker run --rm -v $pwd`:/target mziyabo/emscripten emcc ./hello.cpp -o hello.wasm

Executable image for Wasmtime, a JIT-style runtime for WebAssembly.

Usage

Execute ./hello.wasm in wasmtime

docker run --rm -v ${pwd}:/target mziyabo/wasmtime ./hello.wasm

Known Issues

  • Emscripten image is a little beefy
  • Might need to address adding link library and includes directories

About

Docker images containing Emscripten toolchain and Wasmtime WebAssembly runtime.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published