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

查看:33
本文介绍了Windows、Mac OS X 和 Linux 是用什么语言编写的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是想知道谁知道 Windows、Mac OS X 和 Linux 是由什么编程语言组成的,以及操作系统的每个部分使用什么语言(即:内核、插件架构、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 程序集.Linux 或 Mac OS 是否包含任何汇编代码?

Windows, I have heard contains C, C++ and Intel Assembly. Do Linux or Mac OS contain any Assembly code?

此外,操作系统开发人员是否使用 Ruby、Python 等脚本语言来编写操作系统的部分脚本?操作系统的哪些部分将用每种语言编写?

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 语言编写的,许多用户级应用程序都是用 Python 编写的,KDE 全部是 C++
  • 所有内核也会使用一些汇编代码.

    All kernels will use some assembly code as well.

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

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