]> git.sesse.net Git - stockfish/commit
Improve ARM compatibility
authorMarco Costalba <mcostalba@gmail.com>
Sun, 1 Sep 2013 16:16:55 +0000 (09:16 -0700)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 1 Sep 2013 16:18:37 +0000 (09:18 -0700)
commitaee404f53269c79ec42eb4d54b0bc6e2d8b1c340
tree4ee37d81326308a191feb19734a925b3e0f14430
parent0915f85895733ff8ed8e480fa9c83c25c296ea1d
Improve ARM compatibility

STANDALONE-TOOLCHAIN.html in Android NDK says:

It is recommended to use the -mthumb compiler flag to force the generation
of 16-bit Thumb-1 instructions (the default being 32-bit ARM ones).

If you want to target the 'armeabi-v7a' ABI, you will need ensure that the
following two flags are being used:

  CFLAGS='-march=armv7-a -mfloat-abi=softfp'

Note: The first flag enables Thumb-2 instructions, and the second one
      enables H/W FPU instructions while ensuring that floating-point
      parameters are passed in core registers, which is critical for
      ABI compatibility. Do *not* use these flags separately!

Thanks to Peter Osterlund for pointout this doc and for showing me
an example Makefile to follow.

No functional change.
src/Makefile