更新时间:2022-05-31 03:56:19
Android设备具有CPU.这些CPU中有许多是基于ARM体系结构的,而有些则是基于x86的,而另一些则是基于诸如MIPS之类的其他东西的.
Android devices have CPUs. Many of those CPUs are based on the ARM architecture, while some are based on x86, and a few others are based on other stuff like MIPS.
某些Android应用程序使用本机开发工具包(NDK)创建C/C ++代码以链接到其应用程序.需要针对特定的CPU架构编译C/C ++代码.NDK将针对每种体系结构编译的C/C ++代码版本放入特定于体系结构的目录中.这些目录之一是 armeabi/
,它用于通用ARM CPU.还有 armeabi-v7/
(用于与ARM v7兼容的CPU), x86/
(用于x86 CPU)等.
Some Android apps use the Native Development Kit (NDK) to create C/C++ code to link into their app. C/C++ code needs to be compiled for a specific CPU architecture. The NDK places the version of the C/C++ code compiled for each architecture into an architecture-specific directory. One of those directories is armeabi/
, which is for a generic ARM CPU. There is also armeabi-v7/
(for an ARM v7-compatible CPU), x86/
(for x86 CPUs), etc.