Last active
May 18, 2018 20:36
-
-
Save avesus/6c4b43f48951826d931a0d350050b26f to your computer and use it in GitHub Desktop.
Complete WASM compilation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/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