Alex Rivera | Logout

Is there a way to let Android NDK-build use a newer version of gcc?

Asked 2011-04-26T06:16:25.993
11

I installed Android NDK r5b Windows version, and I use cygwin to compile the C code.

I see the NDK-build is actually calling C:\android-ndk-r5b\toolchains\arm-linux-androideabi-4.4.3\prebuilt\windows\bin\arm-linux-androideabi-gcc-4.4.3 to compile. I wonder if there is a way to let NDK-build use a newer version of gcc?

The reason I want to do this is:

Gcc4.4.3 has known bug on generating not optimal assembly code for certain NEON intrinsics
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43118
http://hilbert-space.de/?p=22

The newly released GCC 4.6 claims that it has some improvements for ARM and intrinsics. So I want try to have NDK-build use GCC4.6.

Edit
Report

1 Answer

1

There is an alternative NDK build: http://www.crystax.net/en/android/ndk/7

It includes gcc 4.6.3.

answered 2012-07-19T14:52:37.900

Your Answer