[Please do not mail me a copy of your followup]
Ian Collins <
[email protected]> spake the secret code
Can you name a desktop or server OS that isn't written in C?
Most microcomputers had their original "DOS" written in assembly, if
they had DOS. If they didn't have DOS, the primitive command shell
was written in assembly. For instance, the Apple ][ monitor was
written in assembly and the ROM containing integer BASIC was written
in assembly.
IIRC, BeOS was written in C++, but its not clear from the wikipedia page.
The API was definately C++ and not C, so its reasonable to assume that
the implementation is C++ and not C. The open source successor to
BeOS, Haiku, is written in C++.
<
http://en.wikipedia.org/wiki/Haiku_(operating_system)>
I think parts of the original MacOS (i.e. "System", "Finder", etc.)
may have been written in Pascal as MPW provided a Pascal compiler. I
think it provided a Pascal compiler before it provided a C compiler.
ISTR that if you wanted to program for the first Mac, it was basically
Pascal using MPW or use some other non-Apple sanctioned tool chain.
FORTH turnkey systems generally replace the OS entirely with code written
in FORTH.
Oberon is written in Oberon.
<
http://en.wikipedia.org/wiki/Oberon_(operating_system)>
The Lilith workstation's operating system was written entirely in
Modula-2. <
http://en.wikipedia.org/wiki/Lilith_(computer)>
Burroughs mainframes were programmed either in assembly or Algol.
<
http://en.wikipedia.org/wiki/Burroughs_large_systems>
Granted, most of these examples are somewhat historical, although FORTH
is still used for many turnkey/embedded systems.
However, its important to remember that "OS" is not a synonym for LMW*
platforms. (*Linux, MacOS, Windows) Still, it should be mentioned
that many components that ship as part of Windows are written in C++
and expose themselves as COM objects. One can debate whether or not
these are part of the "OS", however.