6 h
=$
(readlink
-f $
(dirname $0))
7 r
=$
(readlink
-f $h/..
/..
)
11 export OCAMLRUNPARAM
=b
13 if test $h = $PWD; then
18 if ! md5sum --status -c $d; then
19 md5sum $h/build.ml
$h/tbs
$t/tbs.cma
>$d.tmp
20 ocamlc.opt
-o build.cmo
-c -g -I $t $h/build.ml
21 ocamlc.opt
-g -thread -I $t unix.cma threads.cma tbs.cma build.cmo
-o b
30 ccopt
="-Wall -Werror -Wextra -Wno-unused-function"
31 ccopt
="$ccopt -O3 -march=athlon64 -mtune=athlon64 -fprefetch-loop-arrays"
32 ccopt
="$ccopt -DTIMING"
36 cc
="$HOME/x/dev/gcc-4.3.0/bin/gcc";
37 ccopt
="-Wall -Werror -Wextra -O3 -Wno-unused-function";
38 ccopt
="$ccopt -DTIMING"
40 ccopt
="$ccopt -fprefetch-loop-arrays -mtune=power6 -mcpu=G4"
41 ccopt
="$ccopt -DG4 -DUSE_ALTIVEC"
42 ccopt
="$ccopt --param l1-cache-line-size=32"
44 ccopt
="$ccopt -fprefetch-loop-arrays -mtune=power6 -mcpu=G4 -funroll-all-loops"
45 ccopt
="$ccopt -ftree-loop-linear -ftree-vectorize"
51 ccopt
="-Wall -Werror -Wextra -O3 -Wno-unused-function";
52 ccopt
="$ccopt -fprefetch-loop-arrays -mtune=power6 -mcpu=cell"
53 ccopt
="$ccopt --param l1-cache-line-size=128"
54 ccopt
="$ccopt -DTIMING"
56 ccopt
="$ccopt -DUSE_ALTIVEC"
58 ccopt
="$ccopt -ftree-loop-linear -ftree-vectorize"
69 .
/b
-O src
:$h -r -O ccopt
:"$ccopt" -O cc
:"$cc" $
* $targets