那就是为啥intel要拼命地增加缓存了。
抱歉我记忆有错,分支占15-20,剩下的35%大部分是加乘两指令。信息来源见这里:
http://www.anandtech.com/cpuchipsets/showdoc.aspx?i=2748
Typical x86 software code consists of about 50% stores and loads, andthere are about twice as many loads as there are stores. Of theremainder, about 15 to 20% of the instructions are branches (If, Then,Else), and the rest are mostly "ADD" (addition) and "MUL" (multiply)instructions. Only a very small percentage of code consists of moreexotic instructions such as DIV (divisions), SQRT (square root), orother higher order math (e.g. trigonometric functions).
[ 本帖最后由 紫色 于 2007-9-12 22:23 编辑 ] |