ericsink/wasm2cil
关于
A "compiler" that can take a WebAssembly/WASI module and convert it to a .NET assembly
编程语言与运行时实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文wasm2cil
This is a .NET compiler for WebAssembly modules, including support for WASI.
Specifically, it can take a WebAssembly module and translate it into a .NET assembly on disk.
The resulting DLL is not interpreted -- it contains the same functions as the WebAssembly module, translated from Wasm instructions to CIL instructions.
This is designed to be used with Clang 8 and wasi-sysroot. In that sense, this provides a way to compile C/C++ for .NET, using Wasm as a halfway point. Like an alternative to pinvoke.
(Rust should hopefully work too, but I haven't tried that yet.)
All of this is very much a work in progress.
But the current status is that some basic things do work. Working test apps in this repo include a small ray tracer and a basic port of SQLite. The latter can read and write SQLite database files that seem to be fully interoperable with "regular" SQLite builds.
Still, I suggest you not try using this for anything serious yet.
The subdirectories of this repo have README files with a bit more info.
See my blog entry for more information.
探索相关项目
加载中…