なんかGoogleChromeの方がevalが遅いという話が以前あったが、
an overview of TraceMonkey ✩ Mozilla Hacks – the Web developer blog http://hacks.mozilla.org/2009/07/tracemonkey-overview/
の二番目の奴だとGoogleChromeの方がFx4より早い。
まあ、Fxはpre betaだから?まあChromeもbetaだが。
64bits版OS使っているから、64bits版MinGWにしたら64bitsバイナリしか吐かないので(コマンドラインで変えられると思うが)、32bits版を入れて試す。
別に64bitsバイナリを吐く32bits or 64bits gccの開発を行っているわけではないんだよね?
---
>The mingw-w64 project is a complete runtime environment for gcc to support binaries native to Windows 64-bit and 32-bit operating systems.
問:以下のソースを全く同じ動作をするコードを書け。(定数時間)
-----
auto CTest1::TestFunction(unsigned int a, unsigned int b)->unsigned int{
unsigned int ret = 0;
for(unsigned int i = a; i <= b; ++i){
ret += i;
}
return ret;
}
-----
俺には書けなかった・・・
TestFunction(0xfffffffe, 0xfffffffe);
TestFunction(n, 0xffffffff);
あたりを再現できるかが肝心だな。
多分無理だと思うのだが。