4 ms·
Stupid question - how are they handling system calls in wasmer? I can't seem to find the answer easily.
by akhilcacharya 8y ago
Stupid question - how are they handling system calls in wasmer? I can't seem to find the answer easily.
- bno1 8y agoI'm not very well informed but I assume that you just call functions which are implemented by the VM, in the same manner you do filesystem operations in nodejs.
- syrusakbary 8y agoWe first wanted to focus on running Emscripten-generated WebAssembly files, so we are wrapping the syscalls that Emscripten is using with the real syscalls under the hood. Here's an example of that: https://github.com/wasmerio/wasmer/blob/master/src/apis/emscripten/syscalls.rs https://github.com/wasmerio/wasmer/blob/master/src/apis/emsc...
- akhilcacharya 8y agoWould support for something like wasm-bindgen be possible eventually?