如何Android原生code为ARM编写运行在x86上? [英] How does native android code written for ARM run on x86?

查看:303
本文介绍了如何Android原生code为ARM编写运行在x86上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

摩托罗拉刚刚发布了基于Android手机的86。我有点困惑,如何对原生ARM(Netflix公司为​​例)编写的应用程序/库可以这款手机上运行。

Motorola just released an x86 based Android phone. I'm a little confused as to how native apps/libraries written for ARM(netflix for example) can run on this phone.

我会很感激,如果有人能解释。

I'd be grateful if someone could explain.

推荐答案

是的,ARM原生code使用了一个名为仿真功能英特尔的x86上运行的胡迪尼

Yes, ARM native code runs on Intel x86 using an emulation feature named Houdini

这是什么做的库是在飞行中读取ARM指令,并将其转换为等价的x86指令。这就是为什么许多应用程序可以正常工作是在x86上,而不必实际建造同等库的原因。

What this library does is reads ARM instructions on the fly and converts them to equivalent x86 instructions. This is the reason why many apps may work as is on x86 without actually having to build an equivalent library.

这篇关于如何Android原生code为ARM编写运行在x86上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆