适用于Android的I-Phone VM [英] I-Phone VM for Android

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

问题描述

我正在考虑开放一个项目,为Android 2.0(读摩托罗拉droid)之前创建一个i-phone虚拟机,我这样做,我有一些问题:

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. 有没有一个已经存在,我只是错过了?

  1. Does one already exist that i just missed?

Droid的Arm Cortex A8可以降频至550MHz (感谢维基百科)处理一个I-Phone抽象层?

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

性能明智的做法是用C ++编写应用程序,系统,最好把iphone vm放在dalvik vm的顶部?

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?

否。


Droid的ARM Cortex A8
可以降频至550MHz(感谢
wikipedia)处理Iphone?

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

不,但CPU不是严重的问题。

No, but the CPU is not strictly the issue.


要做的事
是用C ++写的应用程序,但是对于系统的
健康,将$ v
放在
的顶部是
还是dalvik vm?

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.

你可以在C / C ++中创建一个Objective-C实现它可以通过Android NDK在Android上运行,但NDK库具有有限的系统访问权限,这意味着你不能在Objective-C中做很多事情。

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.

你的Objective-C实现可以作为一个独立的应用程序在根硬件上运行,因此可以访问更多的系统,但是你几乎不再运行Android。

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.

不可能创建一个将在Dalvik VM上运行的Objective-C实现,并且其性能类似于iPhone上的Objective-C的本机实现。

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.

请注意,我甚至没有讨论实现Cocoa库等,因为我不知道如何在合理的时间没有侵犯版权,这将使你被起诉被遗忘(请参阅:Apple v。 Pystar )。避免这种情况的唯一方法是实施完全无尘室, WINE 民众将指出他们是如何做到的

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.

如果您的目标是在Android和iPhone上编写应用程序,请考虑 PhoneGap Appcelerator Titanium Mobile ,以及类似的工具包。

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

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

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