Skip to content
How to build webassembly files with nothing other than standard Clang/llvm.
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
nanolibc Do not create a zero-sized block. Mar 23, 2019
.gitignore Build with compiler and linker instead. Mar 4, 2019
Makefile Update Makefile. Mar 17, 2019
README.md Build with compiler and linker instead. Mar 4, 2019
index.html Add memory dump command. Mar 18, 2019
library.cpp Add memory dump command. Mar 18, 2019
server.py Add dot to wasm mime type extension. Mar 18, 2019

README.md

Webassemly with only Clang 8

I did not find instructions for this anywhere online, so here they are. We can now build small wasm files with nothing other than Clang (e.g. Emscripten is not needed).

  1. Install Clang 8 or later. Linux packages are here.
  2. make
  3. To try the built wasm file, run python3 server.py.

Optional: To disassemble the wasm file, you can install wabt and run make wat.

You can’t perform that action at this time.