Skip to content

Xylon-Lab/IL2Wasm

Repository files navigation

IL2Wasm

An experimental compiler that converts C# Intermediate Language (IL) into WebAssembly (WASM).

Version

Important

IL2Wasm is a highly experimental, work-in-progress tool. It is not yet production-ready.

Features

  • Embed raw WAT directly inside a method using IL2Wasm.BaseLib.Compilation.EmitWat("WAT String");
  • Mark methods with [NoMangle] to make them easily callable from JavaScript.
  • Use [JSImport] on extern methods to link them to corresponding JavaScript imports.

Requirements

  • To compile WAT (WebAssembly Text) into WASM, wat2wasm needs to be installed and on your system PATH.
  • wat2wasm is not required if you only need to inspect or view the generated WAT output.

Contributing

Want to contribute? Check out CONTRIBUTING to get a grasp on the codebase.

About

An experimental compiler that converts C# Intermediate Language (IL) into WebAssembly (WASM).

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages