wasmc icon indicating copy to clipboard operation
wasmc copied to clipboard

:sparkles: A WebAssembly interpreter written in C for demonstration

Results 6 wasmc issues
Sort by recently updated
recently updated
newest added

在windows中用make构建出现错误 sys/mman.h: No such file or directory 在wsl ubuntu中用make构建出现错误 stdint.h: No such file or directory 请问这该怎么解决?

## interpreter.c文件第382行。实现外部函数调用有多种方式。 1. 如果是基本类型,可以使用ABI调用。就是对应平台函数的参数传递规则等的使用。更简单的使用方式是使用ffi的库去实现。 2. 对于复杂类型,或者通用的类型。可以采用bind的方式。意思是使用编写一个函数,可以去虚拟机的执行堆栈获取所需要的函数数据。就行v8的function,提供的v8::FunctionCallbackInfo一样。

有几个问题, 1能否在msys2里编译通过? 2怎么写一个scheme 编译器/解释器 到这个Wasm上? 或者forth的 解释器/编译器. 因为看到Wasm也支持S表达式, 所以这跟lisp scheme是不是有某种天然亲和力, 所以产生这种联想. 就是不知道如何着手实现, 求指导.

没必要引入太多的库,去掉后可以移植到各种系统和单片机等嵌入式项目

Hi, there is a small bug in skip_immediate function: a break is missing ```c case I32Const: // I32Const 指令的立即数表示 32 有符号整数(占 4 个字节) read_LEB_unsigned(bytes, pos, 32); HERE>>>>>>>> case I64Const: //...

0xFC byte code (TruncSat) is 2 bytes wide cf. documentation: [documentation](https://pengowray.github.io/wasm-ops/#fc)