Chromium 操作系统是用哪种语言编写的?
我想知道 Chromium OS 是用哪种语言编写的。我猜他们使用了 C/C++,但他们是否使用了不同的东西(Go)?
他们是否使用汇编来编写低级代码,因为我知道他们必须改变一些东西才能使启动速度更快?
I wonder in which language Chromium OS is written.I guess they have used C/C++ but did they put something different (Go)?
Did they used Assembly for low level code as I know that they had to change some things to make booting a lot faster?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
它实际上并没有写在任何东西中。它是另一个 Linux 发行版,它打包了一大堆预先存在的程序,每个程序都是独立开发的,并以其个人作者喜欢的语言编写。
它实际上只是 YAUD(又一个 Ubuntu 衍生品)。
It's not really written in anything. It's yet another Linux distribution which packages a whole bunch of pre-exisiting programs, every single one developed independently and written in whichever language its individual author prefers.
It's really just YAUD (yet another Ubuntu derivative).
如果您指的是内核和库,它们是用 C 和汇编语言编写的。
If you mean Kernel and Libraries, they are written in C and Assembly.
ChromiumOS 基于 Gentoo,并使用多种语言来构建;绝大多数是:
运行时,ChromiumOS 使用 Rust/C++/C/Assembly 绝大多数情况下,一旦浏览器启动,Chrome 本身支持的任何内容(因此 JavaScript 被大量使用)。有一些具有低级系统启动/维护的 shell 代码,但系统上没有 Go 或 Python 或任何其他解释语言。
注意:我包括 awk 和 sed 和“shell”保护伞下的类似语言,我认为这对于大多数对此问题感兴趣的人来说已经足够了。
ChromiumOS is based on Gentoo and uses a wide variety of languages to build; the vast majority are:
at runtime, ChromiumOS uses Rust/C++/C/Assembly the vast majority of the time, and once the browser is up, anything Chrome itself supports (so JavaScript is used a lot). there is some shell code with low level system boot up/maintenance, but there is no Go or Python or any other interpreted language on the system.
NB: i include awk and sed and similar languages under the "shell" umbrella which i think suffices for most people who are interested in this question.
浏览一下 Chromium 中的
/etc/
,您很快就会发现它主要是 Ubuntu; Google 与 Canonical 签订了合同来完成大部分工作。它启动得很快,因为它没有做太多事情。 :) 我确信还有更多的事情要做,但是限制系统可以执行的操作是将启动速度问题减少到更容易处理的一个好方法。
Poke around
/etc/
in Chromium, and you'll quickly see it is mostly Ubuntu; Google contracted with Canonical to do the majority of the work.It boots quickly because it doesn't do much. :) I'm sure there's more to it than that, but restricting what the system can do is a great way to reduce the boot speed problem to something more tractable.
问 ChromiumOS 是用什么语言编写的是不明确的。 Chromium 操作系统由各种用不同语言编码的组件组成。该内核是一个 Linux 内核,因此它主要是用 C 和一些汇编语言编写的。 Chromium 本身主要是用 C++ 编写的,还有一些 C 语言。还有许多其他组件,例如 X 和窗口管理器、shell 脚本、python 脚本等等,它们都是用多种语言编写的。
Asking what language is ChromiumOS is written is ambiguous. Chromium OS consists of a variety of components coded in different languages. The kernel is a Linux kernel, therefore it's primarily written in C and some assembly. Chromium itself is written primarily in C++, with a bit of C scattered around. There are also a number of other components, such as X and the window manager, and shell scripts, and python scripts, and what not, which are written in a variety of languages.