Skip to content

How to build webassembly files with nothing other than standard Clang/llvm.

Notifications You must be signed in to change notification settings

guozhaokui/clang-wasm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

How to build webassembly files with nothing other than standard Clang/llvm.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 83.3%
  • C 9.8%
  • HTML 4.3%
  • Makefile 2.0%
  • Python 0.6%