Windows,Mac OS X和Linux用什么语言编写?
我只是想知道谁知道Windows,Mac OS X和Linux由什么编程语言组成,以及OS的每个部分使用什么语言(即:内核,插件体系结构,GUI组件等).
I was just wondering who knows what programming languages Windows, Mac OS X and Linux are made up from and what languages are used for each part of the OS (ie: Kernel, plug-in architecture, GUI components, etc).
我假设每种语言都有多种语言,显然我知道Linux内核是用C编写的.
I assume that there are multiple languages for each and obviously I know the Linux kernel is written in C.
我在这里完全猜测Mac OS X包含很多Objective-C代码,因为它是Apple的NeXT派生的语言.
I'm totally guessing here that Mac OS X contains a lot of Objective-C code as it is Apple's language derived from NeXT.
Windows,我听说包含C,C ++和Intel Assembly. Linux或Mac OS是否包含任何汇编代码?
Windows, I have heard contains C, C++ and Intel Assembly. Do Linux or Mac OS contain any Assembly code?
还有,OS开发人员是否使用诸如Ruby,Python等脚本语言来编写OS的某些部分的脚本?操作系统的哪些部分将用每种语言编写?
Also, are there scripting languages like Ruby, Python, etc used by the OS developers for scripting parts of the OS? What parts of the OS would be written in each language?
- Windows:C ++,内核位于C
- Mac:Objective C,内核在C中(IO PnP子系统是Embedded C ++)
- Linux:大多数事情都在C中,许多userland应用程序都在Python中,KDE都是C ++
所有内核也将使用一些汇编代码.
All kernels will use some assembly code as well.