PaintLab / PixelFarm

From Vectors to (sub) Pixels, C# 2D Rendering Library
Other
156 stars 20 forks source link

Please give me some ideas about tools that convert C# to C / C++ #41

Open prepare opened 5 years ago

prepare commented 5 years ago

Always Develop in C# :)

But I need some tools to convert all source to C/C++ code

prepare commented 5 years ago

see impressive (nearly) pure C iOS and Android game example here =>https://github.com/scottcgi/Mojoc/wiki/OOC-(Object-Oriented-C)


Available tools

  1. https://github.com/dotnet/corert

  2. https://github.com/aspnet/Blazor

  3. https://github.com/kekyo/IL2C

  4. https://github.com/ASDAlexander77/cs2cpp


C# to JS, but then we can modify it to generate C++

  1. https://github.com/bridgedotnet/Bridge

  2. https://github.com/praeclarum/Netjs

  3. https://github.com/sq/JSIL

  4. https://github.com/kswoll/WootzJs

  5. https://github.com/Saltarelle/SaltarelleCompiler

sgf commented 2 weeks ago

C# can support AOT compilation. Therefore, I suggest not to consider converting C# to C/C++. The latest versions of .net 6-9 have greatly improved performance, so .net will be a great cross-platform environment.

https://github.com/barncastle/BitsKit This library implements bit fields.

If you insist on outputting Native libraries, you can consider compiling C# to output as .dll、.dylib、.so.