当前位置:网站首页>手机 CPU 架构类型了解
手机 CPU 架构类型了解
2022-07-05 11:53:00 【后端码匠】
手机 CPU 架构类型了解
Android 设备的CPU类型,不同的 Android 设备使用不同的 CPU,不同的 CPU 支持不同的指令集
CPU 架构类型 | 说明 |
---|---|
armeabi/mips / mips64 | 第5代、第6代的ARM处理器,早期的手机用的比较多,NDK 以前支持 ARMv5 (armeabi) 以及 32 位和 64 位 MIPS,但 NDK r17 已不再支持 |
armeabi-v7a | 第7代及以上的 ARM,此 ABI 适用于基于 32 位 ARM 的 CPU 处理器。 |
arm64-v8a | 此 ABI 适用于基于 ARMv8-A 的 CPU,第8代、64位ARM处理器,目前市场主流的版本 |
x86 、x86_64 | intel CPU , 平板、模拟器、64位的平板 |
项目中该如何适配
只适配了armeabi-v7a,如果APP装在其他架构的手机上,如arm64-v8a上,会蹦吗?
不会,但是反过来会
因为armeabi-v7a和arm64-v8a会向下兼容:
只适配armeabi的APP可以跑在armeabi,x86,x86_64,armeabi-v7a,arm64-v8上只适配armeabi-v7a可以运行在armeabi-v7a和arm64-v8a只适配arm64-v8a 可以运行在arm64-v8a上
那我们该如何适配呢?给出如下几个方案:
方案一:只适配armeabi
优点:基本上适配了全部CPU架构(除了淘汰的mips和mips_64)
缺点:性能低,相当于在绝大多数手机上都是需要辅助ABI或动态转码来兼容
方案二:只适配 armeabi-v7a
同理方案一,只是又筛掉了一部分老旧设备,在性能和兼容二者中比较平衡
方案三: 只适配 arm64-v8
优点: 性能最佳
缺点: 只能运行在arm64-v8上,要放弃部分老旧设备用户
这三种方案都是可以的,现在的大厂APP适配中,这三种都有,大部分是前2种方案。具体选哪一种就看自己的考量了,以性能换兼容就arm64-v8,以兼容换性能armeabi,二者稍微平衡一点的就armeabi-v7a。
目前来说,大多数的大厂APP用的都是armeabi或armeabi-v7a。
边栏推荐
- 【TFLite, ONNX, CoreML, TensorRT Export】
- 【PyTorch预训练模型修改、增删特定层】
- 【主流Nivida显卡深度学习/强化学习/AI算力汇总】
- Shell script file traversal STR to array string splicing
- 13.(地图数据篇)百度坐标(BD09)、国测局坐标(火星坐标,GCJ02)、和WGS84坐标系之间的转换
- ACID事务理论
- redis主从模式
- Open3D 欧式聚类
- [pytorch pre training model modification, addition and deletion of specific layers]
- Codeforces Round #804 (Div. 2)
猜你喜欢
The most comprehensive new database in the whole network, multidimensional table platform inventory note, flowus, airtable, seatable, Vig table Vika, flying Book Multidimensional table, heipayun, Zhix
How to protect user privacy without password authentication?
[deploy pytoch project through onnx using tensorrt]
报错ModuleNotFoundError: No module named ‘cv2.aruco‘
Redirection of redis cluster
iTOP-3568开发板NPU使用安装RKNN Toolkit Lite2
Multi table operation - Auto Association query
Codeworks 5 questions per day (1700 average) - day 5
Liunx prohibit Ping explain the different usage of traceroute
多表操作-子查询
随机推荐
Programmers are involved and maintain industry competitiveness
Multi table operation - Auto Association query
Yolov5 target detection neural network -- calculation principle of loss function
yolov5目标检测神经网络——损失函数计算原理
Yolov 5 Target Detection Neural Network - Loss Function Calculation Principle
C # implements WinForm DataGridView control to support overlay data binding
Riddle 1
The most comprehensive new database in the whole network, multidimensional table platform inventory note, flowus, airtable, seatable, Vig table Vika, flying Book Multidimensional table, heipayun, Zhix
View all processes of multiple machines
COMSOL -- establishment of 3D graphics
[configuration method of win11 multi-user simultaneous login remote desktop]
Redirection of redis cluster
【load dataset】
如何让你的产品越贵越好卖
一类恒等式的应用(范德蒙德卷积与超几何函数)
POJ 3176 cow bowling (DP | memory search)
XML解析
11. (map data section) how to download and use OSM data
MySQL statistical skills: on duplicate key update usage
Multi table operation - sub query