SIGILL in Android NDK code

后端 未结 2 995
旧时难觅i
旧时难觅i 2021-02-08 13:04

I have an NDK app out on market and got a native crash report about a SIGILL signal. (I use google breakpad to generate native crash reports.) Here are the details:

2条回答
  •  终归单人心
    2021-02-08 13:30

    Ok, I got it: the NVIDIA Tegra 2 only has 16 64-bit GPU registers, and therefore to target it you must compile using -mfpu=vfpv3-d16. The instruction in question uses register d16, which is "just too many". :(

    Here is a reference to an NVIDIA forum where an employee mentions this limitation: http://developer.nvidia.com/tegra/forum/optimal-performance-guidelines

提交回复
热议问题