This is just a small sneak preview – but it will take a bit to release the whole thing.

I have managed to cross-compile gcc-4.3.5 (and dependencies) for ARM platforms – which allow to directly compile C code on the any ARMv5 (or newer) Android phone.

It is based on buildroot environment and no library dependency exists between it and Android libs. It also uses its own ld.so preloader, meaning that in the future, I would like to have a bunch of Linux tools running directly on the phone, but without the need to have the dependencies statically linked into each environment.

Some outputs:

* Compiling Hello World using the native compiler:

Compiling and ldd command on Android phone

Compiling and ldd command on Android phone

* readelf -A on the native compiler

readelf -A gcc on Android phone

readelf -A gcc on Android phone

* Output of gcc -v

* Compiling “Hello World” on the phone itself and showing the ldd command executed on the native executable:

I am still testing it, and will release it when ready!