-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
android使用armeabi-v7a-hard with NEON模式编译,应用闪退 #171
Comments
硬件:树莓派3B+; |
|
1、如果用-DANDROID_ABI="armeabi-v7a"编译,运行速度更慢呀。 |
@BUG1989 编译参数差别不在于neon,而在于arm linux下使用的是-mfloat-abi=hard -mhard-float,而android下使用的是-mfloat-abi=softfp。也就是armeabi-v7a with NEON和armeabi-v7a-hard with NEON模式编译参数的差别,但是armeabi-v7a-hard with NEON编译了运行不起。 |
遇到了同样的问题: |
我已经解决这个问题,这个问题主要的原因是jni接口没有释放数组内存。 |
android编译,使用armeabi-v7a-hard with NEON模式运行报错:
A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0xfffffff8 in tid 16523。
armeabi-v7a with NEON模式编译运行正常。
在树莓派3B+,Linux上编译,加上-march=armv7-a -mfloat-abi=hard -mhard-float -mfpu=neon优化,性能280ms左右;
可是在nubia z11手机上(这处理器应该比树莓派强太多了吧),用armeabi-v7a with NEON编译运行,结果还是270ms左右。
而使用armeabi-v7a-hard with NEON模式又运行报错。
CPU性能优势因为换成android系统,完全没有体现出来,好忧伤!
The text was updated successfully, but these errors were encountered: