您的位置:首页 > 移动开发 > Android开发

android ndk MIPS Support

2015-10-10 15:32 344 查看


MIPS Support

每秒百万条指令(Million Instructions Per Second)


On this page

Overview
Compatibility

The NDK supports the 
mips
 ABI, which allows native code to run on Android-based devices that have CPUs supporting the MIPS32 instruction set.


Overview概述

To generate MIPS machine code, include 
mips
 in your 
Application.mk
 file's 
APP_ABI
 definition.
For example:
APP_ABI := mips

For more information about defining the 
APP_ABI
 variable, see 
Application.mk
.
The build system places generated libraries into 
$PROJECT/libs/mips/
, where 
$PROJECT
 represents your project's root directory, and embeds them in your APK under the 
/lib/mips/
 directory.
The Android package manager extracts提取 these libraries when installing your APK on a compatible MIPS-based device, placing them under your app's private data
directory.
In the Google Play store, the server filters applications so that a consumer sees only the native libraries that run on the CPU powering his or her device.


Compatibility

MIPS support requires, at minimum, Android 2.3 (Android API level 9). If your project files target an older API level, but include MIPS as a targeted platform, the NDK build script automatically selects the right
set of native platform headers/libraries for you.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  ndk