We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi,
If I build a native code on android-ndk-r10b with APP_ABI := arm64-v8a. Which 64-bit data (LP64, LLP64, ILP4) model is used to compile the code?
Regards,
I think, it is LP64
How and where could I confirm it?
You can force abi's in gcc/llvm with -mabi but the default for Android L, NDK10 and newer, is LP64.
Thanks Matthew.
How and where could I confirm that "default for Android L, NDK10 and newer, is LP64"?
Linux is LP64 as is gcc by default for 64-bit architectures so it made sense to make the Android libraries and NDK LP64 as well. I don't think LLP64 or ILP64 were ever a consideration. You can always check the AOSP L preview gcc defaults or use readelf or gdb to verify a Bionic (or other) lib.