Unofficial reference WASM interpreter written in C. The purpose of this project is to promote understanding of the specification by giving an implementation according to it. The priority is on clarity rather than efficiency and speed.
Clone this repository and run the following command. Make sure that wabt is installed on the system.
$ cmake -S . -B build
The interpreter is tested with this testsuite, which differs somewhat from the official one. This is because the official testsuite contains some test cases depending on the spec interpreter implementation. The interpreter can currently pass all core tests except those related to utf8 and WAT. To run the test, execute the following command.
$ ctest --test-dir build