C Sharp: Difference between revisions

From OSDev.wiki
Jump to navigation Jump to search
[unchecked revision][unchecked revision]
m (fix markup)
m (CSharp moved to C Sharp: Better name)
(No difference)

Revision as of 08:23, 10 July 2009

This page is a stub.
You can help the wiki by accurately adding more contents to it.

C# (or C Sharp) is an object-oriented programming language developed by Microsoft and standardized by the ECMA and ISO. It's syntax is similar to C++, but with significant differences in functionality. It is a higher-level language than C++ or C, and therefore less suitable to be used to build a kernel. C# is build on top of Common Language Infrastructure, therefore you need a thin CLI layer on top of pure hardware in order to use it or translate the CIL into native machine code.

C# as a kernel language

When not using any of the .Net Framework's classes and methods, C# can be used to do some low-level programming. But this requires some intermediate layer to translate the CIL code into machine-code.

Several attempts to create operating systems in C# have been done, most notably SharpOS, Cosmos and Microsoft's own Singularity. Each has a different CIL to machine-code system. Whereas SharpOS and Cosmos each have an AOT compiler implementation (SharpOS AOT and IL2CPU respectively), for Singularity the developers created the Sing# language, which is derived from C# and compiled using the Bartok compiler.

See Also

Articles

External Links

  • C# on Wikipedia