Skip to content

mohanson/wasc

Repository files navigation

img

WASC

WASC is a WebAssembly AOT compiler. The main purpose is to translate the WebAssembly code into machine(x86 and RISC-V) code.

How it works: ./doc/overview_en.md

Build and test

Ubuntu 18.04

$ apt install llvm-9
$ git clone https://github.com/mohanson/wasc
$ cd wasc
$ ./build.sh
$ ./build_test.sh

An example is the best way to show how it works:

$ ./build/wasc example/echo.wasm
$ ./example/echo Hello World!
# Hello World!

You can find more useful examples in the ./example and ./res/wasi.

Credits

Licences

MIT