<div class="gmail_quote">On 6 February 2012 10:11, Johannes Pfau <span dir="ltr"><<a href="mailto:nospam@example.com">nospam@example.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Am Mon, 6 Feb 2012 01:48:32 -0600<br>
schrieb Andrew Wiley <<a href="mailto:wiley.andrew.j@gmail.com">wiley.andrew.j@gmail.com</a>>:<br>
<div class="im"><br>
><br>
> Actually, if the Android default is to build against softfloat ABI,<br>
> you may be stuck with it. If Android doesn't require hardfloat to run<br>
> and doesn't let developers provide multiple binaries for different<br>
> platforms (which it might - I don't know), things get very hard.<br>
><br>
> Also, with NEON, one of the things you don't really hear until you<br>
> start working with these is that NEON isn't actually required in most<br>
> if not all of the ARM CPU specs. I've specifically dealt with the<br>
> Tegra 2, which is used in a lot of phones and has no NEON support even<br>
> though it's ARM Cortex-A9.<br>
<br>
</div>There's a official armv7-a ABI for android, it doesn't use 'hard', but<br>
at least 'softfp' instead of 'soft'.<br>
<br>
Just found the relevant documentation: See<br>
android-ndk-r7/docs/STANDALONE-TOOLCHAIN.html 4/ ABI Compatibility:<br>
------------------------<br>
If you want to target the 'armeabi-v7a' ABI, you will need ensure that<br>
the following two flags are being used:<br>
<br>
CFLAGS='-march=armv7-a -mfloat-abi=softfp'<br>
<br>
If you want to use Neon instructions, you will need one more compiler<br>
flag:<br>
<br>
CFLAGS='-march=armv7-a -mfloat-abi=softfp -mfpu=neon'<br>
<br>
Also, is is *required* to use the following linker flags that routes<br>
around a CPU bug in some Cortex-A8 implementations:<br>
<br>
LDFLAGS='-Wl,--fix-cortex-a8'<br>
------------------------<br>
so according to those docs, you simply pass those flags to the<br>
compiler, no need to recompile the compiler.<br>
</blockquote></div><br><div>Sorry, missed this one. Did spot those flags in the build scripts, so yeah, just missed them last night >_<</div><div>Sorry about that. I'll try again this evening and see how it looks.</div>