Skip to content

Instantly share code, notes, and snippets.

@avesus
Last active May 18, 2018 20:36
Show Gist options
  • Save avesus/6c4b43f48951826d931a0d350050b26f to your computer and use it in GitHub Desktop.
Save avesus/6c4b43f48951826d931a0d350050b26f to your computer and use it in GitHub Desktop.
Complete WASM compilation
~/wasmllvm/bin/clang++ -emit-llvm -fno-builtin -fshort-wchar --compile --sysroot=/root/wasmsysroot/ --target=wasm32-unknown-unknown-wasm client/main.cpp --optimize=3 -o client/app.bc && ~/wasmllvm/bin/llc -mtriple=wasm32-unknown-unknown-elf -filetype=asm -asm-verbose=false -o client/app.s client/app.bc && ~/binaryen/s2wasm client/app.s > client/app.wat && ~/wabt/wat2wasm client/app.wat -o client/app.wasm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment