On Wed, Dec 18, 2013 at 11:55 AM, Niels Möller nisse@lysator.liu.se wrote:
I tried to use the android NDK on nettle and the cpu detected was simply 'arm'.
You could configure with something like --host=armv6-linux-androideabi CC="arm-linux-androideabi -march=armv6t2" No idea how much problems, if any, that will cause for real android devices.
Most probably none, but developers on these devices compile with the flags provided by the BSP provider (in that case the NDK). Given what Martin says if we follow the split approach, on android ARMv6 systems we get the nettle's armv5 code, and only on ARMv7 ones we get the optimized code. Maybe splitting the arm code isn't that good idea.
regards, Nikos