C++, Microsoft's CoreRT turns C# into cross-platform C++
-
The open source CoreRT project does away with using .Net's standard Command Line Runtime (CLR) to run applications. Instead, it generates C++ code from a given .Net C# app's code, which can then be compiled and linked on any target platform that supports C++"If I really want to write some C# code and have it 'just work' on a new IoT device," wrote Microsoft, "I don’t have any options until the RyuJIT is capable of generating machine code that works with that processor and operating system." By cross-compiling C# to C++, .Net developers can then deliver their applications without needing to wait for .Net to be deployed on a given platform, says Microsoft. Microsoft noted it had made some significant process toward this goal over the course of the year, although it acknowledged that the task is easier said than done. The most prominent problem is common to projects that involve transpiling one language into another. C++ and .ForskolinNet do not have a one-to-one correspondence between their features -- the syntax, the data structures, the language logic, and so on. Therefore, CoreRT has to elegantly map certain .Net features into C++.