1.cygwinなcloogの作成 (
cloog-0.18.0をgcc-4.8でうまく使えるようにしてみる)$ mkdir cloog
$ cd cloog
$ wget http://www.bastoul.net/cloog/pages/download/count.php3?url=./cloog-0.18.0.tar.gz
$ mv count.php3?url=.%2Fcloog-0.18.0.tar.gz cloog-0.18.0.tar.gz
$ tar xf cloog-0.18.0.tar.gz
$ sed -i 's/GIT_HEAD_ID="UNKNOWN"/GIT_HEAD_ID="isl-0.11.1"/' cloog-0.18.0/isl/configure
$ mkdir cygwin
$ cd cygwin
$ ../cloog-0.18.0/configure --prefix=/usr --enable-shared --disable-static
$ make -j4 LDLFAGS=-no-undefined$
sed -i 's/allow_undefined_flag="unsupported"/allow_undefined_flag="supported"/' libtool$
sed -i 's/allow_undefined_flag="unsupported"/allow_undefined_flag="supported"/' isl/libtool$ make -j4
$ make install
2.i686-w64-mingw32-binutils(2.23.1)の作成
$ cd ~
$ wget http://www.dnsbalance.ring.gr.jp/archives/GNU/binutils/binutils-2.23.1.tar.bz2
$ tar xjf binutils-2.23.1.tar.bz2
$ mkdir mingw32
$ cd mingw32
$ ../binutils-2.23.1/configure --prefix=/usr/local/4.8 --build=i686-pc-cygwin
--host=i686-pc-cygwin --target=i686-w64-mingw32
$ make -j4
$ make install
3.i686-w64-mingw32-gcc(4.8)の作成
$ cd ~/
$ mkdir gcc48
$ wget http://www.dnsbalance.ring.gr.jp/archives/lang/egcs/snapshots/4.8-20130127/gcc-4.8-20130127.tar.bz2
$ tar xjf gcc-4.8-20130127.tar.bz2
$ mkdir mingw32
$ cd mingw32
$
../gcc-4.8-20130127/configure --prefix=/usr/local/4.8 --build=i686-pc-cygwin
--host=i686-pc-cygwin --target=i686-w64-mingw32
--with-sysroot=/usr/i686-w64-mingw32/sys-root --disable-multilib
--disable-win32-registry --enable-languages=c,c++
--enable-fully-dynamic-string --enable-libgomp --enable-sjlj-exceptions
--enable-version-specific-runtime-libs --with-dwarf2
--enable-decimal-float=bid --enable-lto
checking for version 0.10 of ISL... no
checking for version 0.11 of ISL... yes
checking for version 0.17.0 of CLooG... no
checking for version 0.18.0 of CLooG... yes
$ make -j4
$ make install
$ cp /usr/local/4.8/lib/gcc/i686-w64-mingw32/lib/libgcc_s.a /usr/local/4.8/lib/gcc/i686-w64-mingw32/4.8.0
$ cp /usr/local/4.8/lib/gcc/i686-w64-mingw32/libgcc_s_sjlj-1.dll /usr/local/4.8/bin
cloogがあるとloopの最適化が強力?になるらしい。
Necessary to build GCC with the Graphite loop optimizations.
mingw32なcross-gccが必要な人向け4.mingw32なcloogの作成$ cd ~
$ cd cloog
$ mkdir mingw32
$ cd mingw32
$ export
PATH=/usr/local/4.8/bin:$PATH $ ../cloog-0.18.0/configure --prefix=/usr/i686-w64-mingw32/sys-root/mingw --enable-shared --disable-static
--host=i686-w64-mingw32 CC=/usr/local/4.8/bin/i686-w64-mingw32-gcc CXX=/usr/local/4.8/bin/i686-w64-mingw32-g++$ make -j4 LDLFAGS=-no-undefined$
sed -i 's/allow_undefined_flag="unsupported"/allow_undefined_flag="supported"/' libtool$
sed -i 's/allow_undefined_flag="unsupported"/allow_undefined_flag="supported"/' isl/libtool$ make -j4
$ make install
[0回]