Ethan C.
Ethan C.

Reputation: 73

In which language is Chromium OS written?

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?

Upvotes: 7

Views: 10046

Answers (5)

Mike Frysinger
Mike Frysinger

Reputation: 3072

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.

Upvotes: 5

William Chan
William Chan

Reputation: 778

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.

Upvotes: 9

Jörg W Mittag
Jörg W Mittag

Reputation: 369458

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

Upvotes: 1

Cipi
Cipi

Reputation: 11353

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

Upvotes: 1

sarnold
sarnold

Reputation: 104080

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.

Upvotes: 7

Related Questions