Nanojit

本文介绍了NanoJIT作为Flash Player的即时编译器后端的相关信息,并提供了将JIT编译器从GCC移植到MSVS的方法。主要内容包括关闭平台无关优化、遵循目标平台的ABI规范、实现宏汇编器API等步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

https://developer.mozilla.org/en-US/docs/Nanojit

http://www.udpwork.com/item/7323.html

After search the content from the internet, I think the nano-jit is the jit backend of flashplayer.


If we want to switch the compiler from the gcc to msvs, you can reference this commit:https://bugzilla.mozilla.org/attachment.cgi?id=531649&action=diff, it main focus in ABI and cacheflush



we can know how to porting the jit to a new platform:

1. close all the platform indepent optimization for the jit.

2. reference the ABI

3. check the cacheflush.

4. implement platform dependent api for the macroAsssembler or native class.

5. dump and check the native code for guarantee your implemnt is right.

6. construct some test case for your code, make sure most of branch can be reach.

7. open the optimization step by step,  then verify it.

8. do the arch optimization.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值