开发者

What kind of optimizations AVM2 supports?

I wonder, what kind of optimizations AVM2 (ActionScript 3 VM) support? I know it uses JI开发者_如何学编程T but does it support Dead Code Elimination, constant folding, inlining, etc.

Also it's very interesting to me that ActionScript compiler also do some optimizations. AFAIK C# compiler does very small set of optimizations (only required for language support), JIT does all the work. And it works very fast.

Thanks.

Thanks to MPD. AVM2 supports:

  • Constant Folding
  • Copy & Constant Propagation
  • Common Subexpression Elimination (CSE)
  • Dead Code Elimination (DCE)


Take a look at these slides: ActionScript 3.0 and AVM2: Performance Tuning.


I don't think that the Flash/Flex compiler do most of this optimizations, but you can achieve this results with 3rd party softwares, like secureSWF (commercial).

Maybe you can find another tool that is free or Open Source that does this too.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜