架构和 CPU
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
使用原生代码时,硬件很重要。NDK 提供各种 ABI 供您选择,可让您确保针对正确的架构和 CPU 进行编译。
本部分介绍了在构建时如何面向特定的架构和 CPU,如何使用 ARM Neon 扩展指令集,以及在运行时如何使用 CPU 功能库查询可选功能。
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-27。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-07-27。"],[],[],null,["# Architectures and CPUs\n\nWhen you're working with native code, hardware matters. The NDK lets you ensure\nyou're compiling for the right architectures and CPUs by giving you a variety\nof ABIs from which to choose.\n\nThis section explains how to target specific\n[architectures and CPUs](/ndk/guides/abis) at build time,\nhow to use ARM [Neon extensions](/ndk/guides/cpu-arm-neon),\nand how the [CPU features](/ndk/guides/cpu-features) library lets you query\noptional features at run-time."]]