natsu-clr
is an il2cpp transpiler and runtime compatible with .Net Core.
natsu-clr
是一个兼容 .Net Core 的 IL2CPP 编译器和运行时。
- .Net Core 3.0 compatible
- Small memory footprint
- Very portable
- Easy to interop with C
- Compile-time vtable and variable initializer
- Assembly-level compile without a full build of programs
- .Net Core 3.0 兼容
- 极小内存占用
- 可移植性强
- 很容易和 C 互操作
- 编译期虚表和变量初始化
- 程序集级别编译,不需要整个程序全部编译
- Array
- Delegate
- Exceptions
- Generic
- Explicit interface implementation
- Unsafe
- Internal Call
- Unicode
- Span
- Volatile and Interlocked
- Thread
- Garbage Collection
- Reflection
Install .Net Core SDK 3.0 and CMake
- Build compiler
dotnet build Natsu.sln
- Run compiler to generate .h and .cpp
cd src/Natsu.Compiler/bin/Debug/netcoreapp3.0 && ./Natsu.Compiler
- Build runtime and app
mkdir out && cd out
cmake .. -DCHINO_ARCH=Emulator -DCHINO_BOARD=Emulator -DCHINO_APP=Chino.Apps.Shell
- Full support of standard libraries (Wellcome contributors!)
- 完整支持标准库 (欢迎贡献者!)