Adobe AIR和iPhone - 它是如何工作的? [英] Adobe AIR and iPhone - how it works?

查看:233
本文介绍了Adobe AIR和iPhone - 它是如何工作的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人知道如何在Adobe AIR应用程序转换为iPhone应用程序?我看到两个方面 - 无论是Adobe AIR的虚拟机每亩是每一个应用程序的一部分,或者它们必须将所有ActionScript调用可可触摸某种方式调用,或是有Objective-C的双胞胎为每个ActionScript类,然后将其编译成ARM汇编

我只是好奇它是如何在技术上完成。

BR 斯登

解决方案

不像其他的平台,Adobe AIR在编译成本code,当你构建iOS应用程序。

下面是一个博客文章从Adobe的一部分:

  

我们创建了一个新的编译器前端,让LLVM理解的ActionScript 3和使用其现有的ARM后端为输出原生ARM汇编code 。我们称之为的提前(AOT)编译,与此相反的方式的Adobe Flash Player和Adobe AIR在桌面上使用准时化(JIT)编译的功能。既然我们能够编译ActionScript将ARM领先的时候,应用程序获取所有性能优势的JIT将提供和许可证合规性的不需要在最终的应用程序运行时

这意味着:

  1. AIR运行时没有在应用程序内打包。

  2. AS3 code未转换成Objective-C的code,而是直接编译到本地组装code。

Anyone knows how the Adobe AIR application are converted to iPhone apps? I see two ways - either the Adobe AIR virtual machine mus be part of every application or they must convert all ActionScript calls to Cocoa Touch calls somehow or have an Objective-C twin for every ActionScript class and then compile it to ARM assembler.

I am just curious how it is technically done.

BR STeN

解决方案

Unlike other platforms, Adobe Air is compiled into native code when you build an iOS application.

Here is a part of a blog post from Adobe:

We created a new compiler front end that allowed LLVM to understand ActionScript 3 and used its existing ARM back end to output native ARM assembly code. We call this Ahead of Time (AOT) compilation—in contrast to the way Adobe Flash Player and Adobe AIR function on the desktop using Just in Time (JIT) compilation. Since we are able to compile ActionScript to ARM ahead of time, the application gets all the performance benefits that the JIT would offer and the license compliance of not requiring a runtime in the final application.

That means that:

  1. The Air runtime is not packaged within the application.

  2. AS3 code is not converted into Objective-C code, but is compiled directly into native assembly code.

这篇关于Adobe AIR和iPhone - 它是如何工作的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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