Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 406
Ethan C. Avatar asked Sep 01 '10 11:09

Ethan C.


3 Answers

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.

like image 181
sarnold Avatar answered Nov 06 '22 15:11

sarnold


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.

like image 43
William Chan Avatar answered Nov 06 '22 14:11

William Chan


Chromium OS is based on Gentoo and uses a wide variety of languages to build. the vast majority to build Chromium OS are:

  • Python
  • shell (so bash, sed, awk, etc...)
  • C
  • C++
  • Assembly
  • Perl (for autotools and such)

at runtime, Chromium OS uses 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 python or any other interpreted language on the system.

like image 39
Mike Frysinger Avatar answered Nov 06 '22 14:11

Mike Frysinger