Simply generate LLVM IR code within C#/.NET, which can be (cross-) compiled to (standalone) machine code for almost every architecture / operating system.
Generating LLVM IR code for:
- Your own kernel / operating system within C#? Definitly!
- Creating your own compiler, and maybe also your own language? Why not?
- Creating a transpiler which compiles managed code to machine code? Yes, of course.
- Creating an application which can be compiled to native code? Yeah, but it would be a lot easier to use a language which can be directly compiled to machine code.
Yeah, I know, but feel free to share your opinions / suggestions with us.