Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Summary

This repository contains experiments I'm doing to learn how to build webassembly code using clang (without emscripten). They require a recent version of the clang compiler.

How to build clang

cd llvm-project
mkdir build
cd build
cmake ..\llvm -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="clang;lld"

How to build the sum_sample

clang.exe --target=wasm32 -nostdlib "-Wl,--no-entry" "-Wl,--export-all" -o sample.wasm .\test.cpp

Start a local web server, e.g. using Python:

python3 -m http.server

Link to sample: click here

About

This repository contains experiments I'm doing to learn webassembly from scratch.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages