
7 May
2010
7 May
'10
2:57 p.m.
On Friday 07 May 2010 16:06:41 DE wrote:
on 06.05.2010 at 22:48
Kenny Riddile wrote :
If you mean a language-imposed, inherent abstraction penalty, then I doubt it (certainly not 33%). You can find out for yourself though:
http://www.stepanovpapers.com/AbstractionPenaltyBenchmark.cpp
i've run the code for my everyday compiler (msvc80) and it greported no abstraction penalty
i've also tried icc11 and it showed minor abstraction penalty (mean = 1.17)
i'm trying gcc 4.4.3 here (optimization/total/penalty ) O0/ 32.15 /5.29 O1/ 1.02 /0.39 O2/ 0.86 /0.94 O3/ 1.09 /0.39 Os/ 0.96 /0.44 Do i understand that rigth or does gcc produce better code when you abstract away ?