In which language is Chromium OS written?

9.6k views Asked by At

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?

5

There are 5 answers

4
sarnold On BEST ANSWER

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.

1
Jörg W Mittag On

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

0
Cipi On

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

0
William Chan On

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.

0
Mike Frysinger On

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.