Windows,Mac OS X和Linux用什么语言编写? [英] What languages are Windows, Mac OS X and Linux written in?

查看:275
本文介绍了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.

    这篇关于Windows,Mac OS X和Linux用什么语言编写?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆