This is a repo of the research on the consistency of the WebAssembly representation of float-point number on x86 and ARM and some ideas about the binary representations of fixed pint type numbers in Liquid smart contract.
Sharing our conduct with wasm learners.
Conducted by Shuo Yang
and Wei Li
from Sun Yat-sen University
during the internship in WeBank
, Shenzhen, China, Decemeber 10, 2021.
Rust
: folder src
$ cargo build
$ cargo run
C++
: folder c++
$ cd c++
$ emcc hello.cpp -s WASM=1 -o hello.html
$ serve .
Web
injection: folder hello-wasm
$ cd hello-wasm
$ wasm-pack build --target web
$ serve .
Compilers Solc 0.8.x
and Solang
support ewasm
Some demo tests
./solc -o ./solidity/solc_res --ewasm ./solidity/contract.sol
./solang ./solidity/contract.sol --target ewasm -o ./solidity/solang_res
-
wasmer
-
wasmtime
-
wasm-pack
-
node module: serve
-
emscripten