作者Domos (Domos)
看板WindowsPhone
标题[情报] A look at the Windows Phone JIT...
时间Wed Jan 4 15:36:29 2012
A look at the Windows Phone JIT compiler
新闻来源:
http://migeel.sk/blog/2011/07/16/a-look-at-the-windows-phone-jitter/
蛮有意思的一篇文章,我想windows phone的开发者会有兴趣
本文作者对WP的app做disassembly
发现WP的emulator跑的居然是x86的code!!
"Does it look like trash? It is trash!
That’s because the code you are actually looking at is x86, not ARM.
How is that possible?"
这回答了为什麽WP的emulator跑的如此神速
是device的2~3倍快
http://0rz.tw/H55Fo
http://0rz.tw/M0zdq
android emulator表示: 压力很大
接着作者对device上的app进行disassembly
顺利得到ARM code,只是…根据作者的说法
1. 做的事情很简单(只是回传一个值)而程式码非常冗长
2. 程式的开头和结尾长的很怪
3. 程式没有遵守Intel ABI (不清楚这是什麽)
4. 程式使用
add eax, 0当成
nop!!
另外作者也尝试使用Release模式编译,但程式码照样很冗
作者没有说是7.0还是7.1 (我想是7.1)
这意谓windows phone的JIT还有很大一段进步空间
换个角度想,现在执行的程式,未来还有可能会更顺!
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.112.217.29
1F:→ peja130 :我觉得现在已经很顺了@_@ 01/04 15:48
2F:→ friedpig :大一点的程式还是会顿 也有可能是没写好就是了= = 01/04 15:49
3F:推 sh028044 :第四点太弱了吧= ="一样会消耗效能,非真正暂停 01/05 13:02