当前位置:网站首页>手机 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 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
- Mysql统计技巧:ON DUPLICATE KEY UPDATE用法
- Application of a class of identities (vandermond convolution and hypergeometric functions)
- 【无标题】
- 2022年国内云管平台厂商哪家好?为什么?
- 13.(地图数据篇)百度坐标(BD09)、国测局坐标(火星坐标,GCJ02)、和WGS84坐标系之间的转换
- [loss functions of L1, L2 and smooth L1]
- Dynamic SQL of ibatis
- 2048 game logic
- [pytorch pre training model modification, addition and deletion of specific layers]
猜你喜欢

《增长黑客》阅读笔记
自动化测试生命周期
![[cloud native | kubernetes] actual battle of ingress case (13)](/img/1a/9404f6dcedd15827fa45f8f6f4c093.png)
[cloud native | kubernetes] actual battle of ingress case (13)

13.(地图数据篇)百度坐标(BD09)、国测局坐标(火星坐标,GCJ02)、和WGS84坐标系之间的转换

Redis cluster (master-slave) brain crack and solution

Redirection of redis cluster

一次生产环境redis内存占用居高不下问题排查
![[yolov5.yaml parsing]](/img/ae/934f69206190848ec3da10edbeb59a.png)
[yolov5.yaml parsing]

XML解析

简单解决redis cluster中从节点读取不了数据(error) MOVED
随机推荐
[yolov3 loss function]
报错ModuleNotFoundError: No module named ‘cv2.aruco‘
[calculation of loss in yolov3]
Codeforces Round #804 (Div. 2)
Implementation of array hash function in PHP
Thoughts and suggestions on the construction of intelligent management and control system platform for safe production in petrochemical enterprises
Reading notes of growth hacker
Sentinel sentinel mechanism of master automatic election in redis master-slave
How to make your products as expensive as possible
JS for循环 循环次数异常
一类恒等式的应用(范德蒙德卷积与超几何函数)
Redis集群(主从)脑裂及解决方案
2048游戏逻辑
【yolov5.yaml解析】
Acid transaction theory
[crawler] Charles unknown error
Is it difficult to apply for a job after graduation? "Hundreds of days and tens of millions" online recruitment activities to solve your problems
redis集群中hash tag 使用
liunx禁ping 详解traceroute的不同用法
2048 game logic