compiler for android

can anybody tell what software is used to compile android operating system???

Android sources :slight_smile:

ABHISHEK RATH wrote:

can anybody tell what software is used to compile android operating
system???

gcc

gcc is the backbone, but in my experience you need the whole Android ecosystem installed in order to compile anything. You can download it all from http://developer.android.com/index.html

Jeff Osier-Mixon wrote:

gcc is the backbone, but in my experience you need the whole Android ecosystem installed in order to compile anything. You can download it all from Android Mobile App Developer Tools – Android Developers

  .. in fact there are some precompiled arm-eabi gcc s lurking in prebuilt/ that
it uses for most stuff. Android is a bit weird about its executables
(for a few quite good reasons), but should get on moderately well with
most gcc s if you fettle them appropriately.

  The main thing to do is to make sure that you're not using a glibc
gcc, else it will (unsurprisingly) probably fight bionic.

Richard.

Jeff Osier-Mixon wrote:

gcc is the backbone, but in my experience you need the whole Android
ecosystem installed in order to compile anything. You can download it
all from Android Mobile App Developer Tools – Android Developers

.. in fact there are some precompiled arm-eabi gcc s lurking in
prebuilt/ that
it uses for most stuff. Android is a bit weird about its executables
(for a few quite good reasons), but should get on moderately well with
most gcc s if you fettle them appropriately.

which in this case means adding all the bionic patches, then you might
as well use the google provided ones.

The main thing to do is to make sure that you're not using a glibc
gcc, else it will (unsurprisingly) probably fight bionic.

yep :slight_smile:

If you don't want to compile a OS image but just a program or two the
NDK works as well.

Much easier to get started was well.

Cheers,
    Nils