Solaris教えてスレッド 其の7

76名無しさん@Emacs
cc と gcc はどちらが早いのかを調べるため、

http://w3cic.riken.go.jp/HPC/HimenoBMT/Load_module/himenoBMTxpa.lzh

をダウソしてきて、Grid-size = XS で実行してみました。

cc: Sun WorkShop 6 update 2 C 5.3 2001/05/15
usage: cc [ options] files. Use 'cc -flags' for details

cc MFLOPS measured : 3.881678
cc -xO2 MFLOPS measured : 2.344300
cc -xO3 MFLOPS measured : 6.124336
cc -xO4 MFLOPS measured : 6.276402
cc -xO5 MFLOPS measured : 6.322675

Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1/specs
Configured with: ../configure --disable-shared --disable-nls
Thread model: posix
gcc version 3.1

gcc MFLOPS measured : 2.970816
gcc -O2 MFLOPS measured : 9.826418
gcc -O3 MFLOPS measured : 10.778690

gcc の方が圧倒的に早いようなのですが、こんなものなのでしょうか?