wasm2cil

A "compiler" that can take a WebAssembly/WASI module and convert it to a .NET assembly

  • 所有者: ericsink/wasm2cil
  • 平台:
  • 许可证: Apache License 2.0
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

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.

主要指标

概览
名称与所有者ericsink/wasm2cil
主编程语言C
编程语言C (语言数: 5)
平台
许可证Apache License 2.0
所有者活动
创建于2019-03-28 02:26:43
推送于2020-06-14 17:36:09
最后一次提交2020-06-14 12:35:55
发布数0
用户参与
星数292
关注者数22
派生数24
提交数364
已启用问题?
问题数7
打开的问题数6
拉请求数0
打开的拉请求数0
关闭的拉请求数2
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?