# Stockfish build info The app runs **Stockfish 11, unmodified**, as a separate program it talks to over UCI. The binaries in `app/src/main/jniLibs//libstockfish.so` are standalone executables (named `.so` so the installer extracts them), built by `build_stockfish.sh` in this folder. ## Source | | | |---|---| | Tag | `sf_11` (https://github.com/official-stockfish/Stockfish/tree/sf_11) | | Tarball | https://github.com/official-stockfish/Stockfish/archive/refs/tags/sf_11.tar.gz | | Tarball SHA-256 | `802261cc601b67bed00c0ef7d21e2125959630f0852a06db9fc9bd74f440b199` | | Changes to the source | none | ## Toolchain | | | |---|---| | NDK | r28c, `28.2.13676358` (clang 19.0.1, `Android (13624864, based on r530567e)`) | | Host | Windows 11, Git Bash (`windows-x86_64` prebuilt); the script also supports Linux and macOS hosts | | Min API | 26 (`--target=26`) | ## Flags Common to every ABI (compiled and linked in one `clang++` call over `src/*.cpp src/syzygy/tbprobe.cpp`): ``` -O3 -std=c++11 -DNDEBUG -fPIE -pie -static-libstdc++ -s -Wl,-z,max-page-size=16384 -Wl,-z,common-page-size=16384 ``` | ABI | `--target` | Extra flags | |---|---|---| | arm64-v8a | `aarch64-linux-android26` | `-DIS_64BIT` | | armeabi-v7a | `armv7a-linux-androideabi26` | `-mthumb -march=armv7-a -mfpu=neon` | | x86_64 | `x86_64-linux-android26` | `-DIS_64BIT -DUSE_POPCNT -msse4.2 -mpopcnt` | ## Outputs (2026-10-05) Every binary depends only on `libc.so`, `libm.so` and `libdl.so`; every `LOAD` segment is aligned to `0x4000` (16 KB), on all three ABIs. | ABI | Bytes | SHA-256 | |---|---|---| | arm64-v8a | 1,011,784 | `986cb1b62b9537ffe7a9cb5de234c64eb0297c975bebaa39065190e3330dc7f5` | | armeabi-v7a | 646,740 | `2943f3bf65234a41b7916a1b4848ef2ba6efdd6ee9eea22b556affe5244c339e` | | x86_64 | 1,006,200 | `545ca20f3c8b57e3240c737cbece57687b68c0c32b1c9d20f2de50a2be3e1502` | The build is reproducible: the arm64-v8a binary from the `S4-1` spike (built in another folder) and from this script are byte-identical. The debug APK ships it unchanged (`keepDebugSymbols`): the installed copy in `nativeLibraryDir` has the same SHA-256, mode 0755. ## Speed | ABI | Device | `bench 16 1 8` | `bench` (default, depth 13) | |---|---|---|---| | arm64-v8a | Pixel 9a, Android 17 | 379,601 nodes, 618k nps | 5,156,767 nodes, 2.09M nps | | armeabi-v7a | not run: no 32-bit ARM device (the Pixel 9a is arm64-only) | | | | x86_64 | emulator (AVD `chess_x86_64_api34`, Android 14, WHPX, software GPU) | not run | 5,156,767 nodes, 29,990 nps (171.9 s) | 5,156,767 nodes is the `sf_11` bench signature, so the arm64 and x86_64 builds search exactly like official Stockfish 11. The x86_64 figure is from a busy emulator (captured 2026-10-05 with the debug engine probe, `S4-6a`) and says nothing about real x86_64 speed; it only shows the binary runs. Run inside the app (probe, 2026-10-06) the Pixel 9a's default `bench` took 8.8 s (583k nps), and its single searches ran at ~1.8M nps, against 2.09M nps from `adb shell`.