Chromium 操作系统是用哪种语言编写的?

发布于 2024-09-17 09:27:26 字数 116 浏览 14 评论 0原文

我想知道 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

欢烬 2024-09-24 09:28:30

它实际上并没有写在任何东西中。它是另一个 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).

抠脚大汉 2024-09-24 09:28:23

如果您指的是内核和库,它们是用 C 和汇编语言编写的。

If you mean Kernel and Libraries, they are written in C and Assembly.

蓝眼睛不忧郁 2024-09-24 09:28:18

ChromiumOS 基于 Gentoo,并使用多种语言来构建;绝大多数是:

运行时,ChromiumOS 使用 Rust/C++/C/Assembly 绝大多数情况下,一旦浏览器启动,Chrome 本身支持的任何内容(因此 JavaScript 被大量使用)。有一些具有低级系统启动/维护的 shell 代码,但系统上没有 Go 或 Python 或任何其他解释语言。

注意:我包括 awksed 和“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.

她如夕阳 2024-09-24 09:28:12

浏览一下 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.

永不分离 2024-09-24 09:28:00

问 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文