I-VM手机为Android [英] I-Phone VM for Android

查看:161
本文介绍了I-VM手机为Android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在考虑开辟一个项目,以创建一个我的手机虚拟机

Android 2.0的(读摩托罗拉Droid)之前,我这样做,我有一些问题:


  1. 做一件已经存在,我只是错过了吗?


  2. 能否Droid的的ARM Cortex A8下主频550MHz的到(感谢维基百科)处理的I-Phone的抽象层?


  3. 性能方面做的最好的事情就是写C ++应用程序,但是对于系统的健康,倒不如把iphone上的虚拟机Dalvik虚拟机之上?哪种方法会更好,为什么。



解决方案

  

做一件已经存在,我只是
  错过了什么?


没有。


  

能否Droid的的ARM Cortex A8
  下主频550MHz的到(感谢
  维基百科)处理一个iPhone?


没有,但是CPU是不严格的问题。


  

性能明智的最好的事
  是用C ++应用程序,但对于
  该系统的状况,这将是
  最好把iphone VM之上
  Dalvik虚拟机?哪种办法
  更好,为什么。


这是可以想象的,你可以创建C / C ++,可以在通过Android NDK Android上运行一个Objective-C实现,但是NDK图书馆有限的系统访问权限,这意味着你将无法做太多在Objective-C。

可以想象的是,你的Objective-C的实现可以作为植根硬件独立应用程序运行,并因此获得更多的系统,但你pretty多没有运行Android了。

这是不可思议创建一个Objective-C的实施,将在Dalvik虚拟机运行,并具有类似于iPhone上机实现的Objective-C的性能。

请注意,我还没有讨论实施可可库和这样的,因为我不知道你怎么能做到这一点,而不侵犯版权合理的时间,这将让你起诉被遗忘(见:苹果v的 Pystar )。为了避免这种情况的唯一方法是一个总的洁净室实施和 WINE 民间会指出它们是如何试图做到这一点的Windows的约17年,有过不完全的成功。

如果你的目标是一次编写跨Android和iPhone的运行应用程序,可以考虑的PhoneGap ,的 Appcelerator的钛移动以及类似的工具包。

I'm considering opening up a project to create an i-phone virtual machine for android 2.0 (read motorola droid) before i do so i have some questions:

  1. Does one already exist that i just missed?

  2. Can the the Droid's Arm Cortex A8 down-clocked to 550MHz (thanks wikipedia) handle an I-Phone abstraction layer?

  3. Performance wise the best thing to do is write the app in C++, but for the health of the system, would it be better to put the iphone vm on top of the dalvik vm? Which approach would be better and why.

解决方案

Does one already exist that i just missed?

No.

Can the the Droid's Arm Cortex A8 down-clocked to 550MHz (thanks wikipedia) handle an Iphone?

No, but the CPU is not strictly the issue.

Performance wise the best thing to do is write the app in C++, but for the health of the system, would it be better to put the iphone vm on top of the dalvik vm? Which approach would be better and why.

It is conceivable you could create an Objective-C implementation in C/C++ that could run on Android via the Android NDK, but NDK libraries have limited system access, meaning you would not be able to do much in Objective-C.

It is conceivable that your Objective-C implementation could run as a standalone application on rooted hardware, and therefore have access to more of the system, but then you pretty much aren't running Android anymore.

It is inconceivable to create an Objective-C implementation that will run on the Dalvik VM and have performance similar to a native implementation of Objective-C on the iPhone.

Note that I have not even discussed implementing the Cocoa libraries and such, as I have no idea how you could do that in reasonable time without copyright infringement, which will get you sued into oblivion (see: Apple v. Pystar). The only way to avoid this is a total cleanroom implementation, and the WINE folk will point out how they have been trying to do this for Windows for around 17 years and have had incomplete success.

If your goal is to write applications once that run across Android and iPhone, consider PhoneGap, Appcelerator Titanium Mobile, and similar toolkits.

这篇关于I-VM手机为Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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