搜索
查看: 1835|回复: 1

[求助]想得到更多JIT的相关内容

[复制链接]
发表于 2004-8-3 14:31:21 | 显示全部楼层 |阅读模式 来自 中国–陕西–西安
看了AMX0.99后,添加了JIT是干什么的?
About the JIT:
The Just-In-Time compiler has been introduced in AMX 0.9.9. It allows 10+ times faster plugin execution.

For the curious ones that would wonder how it works: your .sma plugins are compiled to .amx files with the sc compiler. The .amx files are Abstract Machine eXecutables: they contain bytecode (instructions that has to be interpreted). Before AMX Mod 0.9.9, the only way to run plugins was to interpret their bytecode constantly, and this was consuming much resources. Now thanks to the JIT, the .amx plugins are compiled at load time to instructions that can be sent directly to the processor, no longer needing the (slow) interpreter. Plugins run faster, and your server will no longer suffer high stress when you declare many.


这东西除了让插件的执行效率更高外,我希望得到更多关于JIT的说明
发表于 2004-8-3 20:38:38 | 显示全部楼层 来自 中国–福建–龙岩
好像是为了某些CPU插入优化代码。 :thefinger
回复

使用道具 举报

游客
回复
您需要登录后才可以回帖 登录 | 注个册吧

快速回复 返回顶部 返回列表