Android-NDK sends its own compiler to create its own code. The version that comes with my current Android-NDK installation, arm-linux-androideabi-g++ (GCC) 4.6.x-google 20120106 (prerelease) , I think this is a GCC 4.6 plug.
What are the differences between it and regular (vanilla) GCC 4.6? Does it produce the best code for ARM platforms?
I would like to use other compilers to create Android software, for example vanilla GCC 4.7 or Clang, as they have better C ++ 11 support and implement some functions that I am trying to use (for example, template aliases).
Can I use the latest version of vanilla GCC or Clang to create my own Android code? What parameters should be used?
What are the disadvantages of using a compiler other than the one that comes with the Android SDK?
source share