On Thu, Oct 29, 2009 at 3:48 AM, Kerry Thompson <[email protected]> wrote:

>> don't swfs compiled from c run faster in the plugin than ones compiled
>> in actionscript? i thought i read that
>
> I don't know of a way to compile a swf from C, or any machine-language
> compiler. I'm not quite sure about iPhone apps developed in Flash--they may
> compile to native code, but there isn't a way to compile a swf to machine
> language that I know of.
>
> If there was, yes, it would run faster than Flash or Flex swf's. Anything
> that compiles to machine code will run faster than something that compiles
> to a token and runs on a virtual machine.

Alchemy compiles C++ to Actionscript bytecode.

Some of the generated bytecode _is_ faster than bytecode compiled from
AS3, partially because Alchemy uses a bunch of new bytecode
instructions for directly manipulating blocks of memory --
instructions that are not used by the current AS3 compiler.

However, some things aren't faster; they're identical.

As far as the iPhone goes, the AS3 is being compiled directly into
iPhone native code, not bytecode; in the same way as Objective C is
compiled to native code.

Ian
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to