Others argue that just-in-time compilers can make optimizations that static compilers simply cannot. There are "pre-compilers" essentially that take the CIL and make native binaries. NET dll and run that on windows or on linux via Mono without recompilation (assuming all of my dependencies are satisfied).Īs for performance, it's debatable. If you want a new language (like F#) you only have to write one compiler for it and you auto-magically get all the platform support for things. Making an interpreter (or more often, Just-In-Time compiler) for the CIL per platform is relatively easy compared to writing a compiler from C# to (per platform) executable code.īeyond that, the runtime can handle anything that compiles to CIL. Because they only need to write one compiler for C# to CIL - which is the hard part.
0 Comments
Leave a Reply. |