当前位置:网站首页>手机 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。
边栏推荐
- 【yolov3损失函数】
- Go language learning notes - first acquaintance with go language
- Open3D 欧式聚类
- Use and install RkNN toolkit Lite2 on itop-3568 development board NPU
- Acid transaction theory
- pytorch-权重衰退(weight decay)和丢弃法(dropout)
- JS for循环 循环次数异常
- redis的持久化机制原理
- [untitled]
- Proof of the thinking of Hanoi Tower problem
猜你喜欢

网络五连鞭

Thoughts and suggestions on the construction of intelligent management and control system platform for safe production in petrochemical enterprises

Cdga | six principles that data governance has to adhere to

Pytorch MLP
![[crawler] bugs encountered by wasm](/img/29/6782bda4c149b7b2b334238936e211.png)
[crawler] bugs encountered by wasm

11. (map data section) how to download and use OSM data

报错ModuleNotFoundError: No module named ‘cv2.aruco‘
![[crawler] Charles unknown error](/img/82/c36b225d0502f67cd04225f39de145.png)
[crawler] Charles unknown error

多表操作-自关联查询
调查显示传统数据安全工具在60%情况下无法抵御勒索软件攻击
随机推荐
How to make your products as expensive as possible
[calculation of loss in yolov3]
Halcon 模板匹配实战代码(一)
【yolov3损失函数】
Cdga | six principles that data governance has to adhere to
2022年国内云管平台厂商哪家好?为什么?
Riddle 1
Application of a class of identities (vandermond convolution and hypergeometric functions)
[crawler] Charles unknown error
Splunk configuration 163 mailbox alarm
无线WIFI学习型8路发射遥控模块
Pytorch weight decay and dropout
[configuration method of win11 multi-user simultaneous login remote desktop]
查看多台机器所有进程
[loss functions of L1, L2 and smooth L1]
Empêcher le navigateur de reculer
[upsampling method opencv interpolation]
How does redis implement multiple zones?
Unity Xlua MonoProxy Mono代理类
iTOP-3568开发板NPU使用安装RKNN Toolkit Lite2