reignstudios / CS2X

Transpiles a C# subset to non .NET languages. (Powered by Roslyn)
MIT License
134 stars 14 forks source link

What's the difference between corert and CS2X? #5

Closed GNUfan42 closed 2 years ago

GNUfan42 commented 2 years ago

There's a .NET runtime names CoreRT, it has a backend calls CppCodeGen, which can also transcompile C# to C(Okay, actually that's C++). Has anyone used it? If yes, please tell me whether I should use it or CS2X.

Thank you!

zezba9000 commented 2 years ago

CoreRT translates IL instructions while CS2X translates/compiles C# syntax to a target. Neither are ready for production use. CoreRT is a dead project FYI.

IL2X is closer to CoreRT but translates to C89 for portability & performance: https://github.com/reignstudios/IL2X IL2X is a runtime subset & still being made. It should be as fast as C & end up allowing for more modern C# lang features.