Re: ARM toolchain for Android - Gcc ON android
On Thu, Jul 14, 2011 at 7:02 AM, Earlence Fernandes
> We are security researchers at Vrije Universiteit Amsterdam. We have a scenario where we need to be able to compile a C source on the Android device itself. Hence, I came upon the R project's Android port:
> I could not find who created the "android gcc", and I posted on the R porting list. They directed me here.
> Good news is that I've tried the gcc on the device and it works like a charm.
> question is, the size is really large.
yes? and? that's normal.
> We have simple C files with no threading and the like.
welcome to embedded application development. have you seen the size
of the android development environment itself? :)
> Just bionic + linux system headers + lib math. Nothing else.
you may be able to use uclibc instead of libc6.
> I was wondering whether I could strip the toolchain down to a bare minimum?
> Or what were your steps while building it in the first place, so that I can exclude things not needed up front?
is it possible to either use an nfs mount, or to have the compiler on
an external usb or other external media? i.e. do you *absolutely
have* to have gcc installed on the actual device.