3 function runtest () # prefix, prog, args
6 $2 $3 $4 $5 $6 $7 $8 $9;
9 $2 $3 $4 $5 $6 $7 $8 $9;
11 awk '{print "'$1'",$0}'
14 function runalltest() #postfix, CXX, CXXFLAGS
18 make CXX="$2" CXXFLAGS="$3" >/dev/null
20 runtest HCUBE19 hcube 19
21 runtest GRBENCH graph-bench
22 } | awk "{print \$0, \"$1\"}"
25 runalltest "gcc-3.3 -O2" g++ "-O2"
26 runalltest "gcc-3.3 -O2-march=pentium-m" g++ "-O2 -march=pentium-m"
27 runalltest "gcc-3.3 -O3" g++ "-O3"
28 runalltest "gcc-3.3 -O3-march=pentium-m" g++ "-O3 -march=pentium-m"
30 runalltest "gcc-3.4 -O2" g++-3.4 "-O2"
31 runalltest "gcc-3.4 -O2-march=pentium-m" g++-3.4 "-O2 -march=pentium-m"
32 runalltest "gcc-3.4 -O3" g++-3.4 "-O3"
33 runalltest "gcc-3.4 -O3-march=pentium-m" g++-3.4 "-O3 -march=pentium-m"