当前位置:网站首页>手机 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。
边栏推荐
- The survey shows that traditional data security tools cannot resist blackmail software attacks in 60% of cases
- ACID事务理论
- pytorch-权重衰退(weight decay)和丢弃法(dropout)
- 12.(地图数据篇)cesium城市建筑物贴图
- vscode快捷键
- Solve the grpc connection problem. Dial succeeds with transientfailure
- 【Win11 多用户同时登录远程桌面配置方法】
- POJ 3176 cow bowling (DP | memory search)
- redis的持久化机制原理
- How does redis implement multiple zones?
猜你喜欢
【SingleShotMultiBoxDetector(SSD,单步多框目标检测)】
Liunx prohibit Ping explain the different usage of traceroute
查看rancher中debug端口信息,并做IDEA Remote Jvm Debug
Idea set the number of open file windows
【主流Nivida显卡深度学习/强化学习/AI算力汇总】
[untitled]
[mainstream nivida graphics card deep learning / reinforcement learning /ai computing power summary]
【TFLite, ONNX, CoreML, TensorRT Export】
[crawler] Charles unknown error
Uniapp + unicloud + Unipay realize wechat applet payment function
随机推荐
【Win11 多用户同时登录远程桌面配置方法】
[untitled]
12. (map data) cesium city building map
redis主从模式
Dynamic SQL of ibatis
Simply solve the problem that the node in the redis cluster cannot read data (error) moved
pytorch-线性回归
Splunk configuration 163 mailbox alarm
程序员内卷和保持行业竞争力
11. (map data section) how to download and use OSM data
ACID事务理论
1. Laravel creation project of PHP
多表操作-子查询
Use and install RkNN toolkit Lite2 on itop-3568 development board NPU
13. (map data) conversion between Baidu coordinate (bd09), national survey of China coordinate (Mars coordinate, gcj02), and WGS84 coordinate system
How to protect user privacy without password authentication?
pytorch-多层感知机MLP
XML解析
《看完就懂系列》15个方法教你玩转字符串
石油化工企业安全生产智能化管控系统平台建设思考和建议