Adobe AIR and iPhone - how it works?

前端 未结 2 1199
清酒与你
清酒与你 2021-02-08 13:53

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 conv

2条回答
  •  清歌不尽
    2021-02-08 14:07

    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.

提交回复
热议问题