PoCC 是一個利用現有其它函式庫進行 polyhedral 優化的編譯器。[[http://www.cse.ohio-state.edu/~pouchet/software/pocc/doc/pocc.pdf|PoCC manual]] ====== 安裝 PoCC ====== # http://www.cse.ohio-state.edu/~pouchet/software/pocc/download/pocc-1.0-rc3.1-full.tar.gz $ wget http://www.cse.ohio-state.edu/~pouchet/software/pocc/download/pocc-1.0-rc3.1.tar.gz $ tar xvf pocc-1.0-rc3.1.tar.gz $ cd pocc-1.0-rc3.1 $ ./install.sh $ export PATH=$PATH:`pwd`/bin # 測試 pocc $ make check ====== 使用 PoCC ====== ====== Q & A ====== - 如果遇到以下問題 make[2]: Entering directory `/tmp/chenwj/pocc-1.0-rc4/optimizers/letsee-0.2.0-pre/letsee' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../letsee/include/letsee -I.. -I.. -I../letsee/include -I../letsee/include +-I/tmp/chenwj/pocc-1.0-rc4/math/install-fm/include -I/tmp/chenwj/pocc-1.0-rc4/analyzers/install-candl/include +-I/tmp/chenwj/pocc-1.0-rc4/driver/install-pocc/include -I/tmp/chenwj/pocc-1.0-rc4/math/install-piplib/include +-I/tmp/chenwj/pocc-1.0-rc4/ir/install-scoplib/include -g -O2 -MT dependence.lo -MD -MP -MF .deps/dependence.Tpo -c -o dependence.lo dependence.c ../libtool: line 827: X--tag=CC: command not found ../libtool: line 860: libtool: ignoring unknown tag : command not found ../libtool: line 827: X--mode=compile: command not found 請執行以下步驟: $ cd optimizers/ $ rm -rf letsee-0.2.0-pre* $ wget http://www.cse.ohio-state.edu/~pouchet/software/pocc/download/modules/letsee-0.2.0-pre-r1522.tar.gz $ tar xvfm letsee-0.2.0-pre-r1522.tar.gz $ cd ../ $ ./bin/pocc-util buildall ====== 外部連結 ====== * [[http://www.cse.ohio-state.edu/~pouchet/software/pocc/|PoCC - the Polyhedral Compiler Collection]]