为 ARM 构建的二进制文件能否在英特尔处理器上运行?[安卓]

问题描述:

我使用 NDK 为 ARM 处理器构建了二进制文件,但由于某些依赖性,我无法为 x86 构建它们.有没有机会在 x86 或 MIPS 架构上使用这个二进制文件?

Using NDK I built binaries for ARM processor, but due to some dependencies I can't build them for x86. Is there any chance to use this binary on x86 or MIPS architecture?

有没有机会在 x86 或 MIPS 架构上使用这个二进制文件?

Is there any chance to use this binary on x86 or MIPS architecture?

我无法评论 MIPS.

I cannot comment on MIPS.

随附 libhoudini 将能够使用基于 ARM 的 NDK 二进制文件.AFAIK,这是大多数当前一代的 x86 设备,比如三星的一些平板电脑.如果您通过 Play 商店发货,则配备 libhoudini 的设备应该能够下载和安装您的应用,而无需对您进行任何更改.

x86 devices that ship with libhoudini will be able to use your ARM-based NDK binaries. AFAIK, that's most of the current-generation x86 devices, like some of Samsung's tablets. If you ship through the Play Store, libhoudini-equipped devices should be able to download and install your app, without any changes on your end.

但请注意,libhoudini 运行 ARM 二进制文件的速度比 x86 二进制文件慢得多.这类似于 Android 模拟器运行 ARM 模拟器映像的速度比 x86 模拟器映像慢得多.

Note, though, that libhoudini runs the ARM binaries much more slowly than it would an x86 binary. This is akin to how the Android emulator runs ARM emulator images much more slowly than it does an x86 emulator image.