static checkers for performance bugs
How to build llvm-2.8 and binutils-2.20.90?
-
cd ${LLVM_ROOT}
-
mkdir install
-
wget ftp://sourceware.org/pub/binutils/snapshots/binutils-2.20.90.tar.bz2
-
tar -xvjpf binutils-2.20.90.tar.bz2
-
cd binutils-2.20.90/
-
mkdir build
-
cd build
-
../configure --prefix=${LLVM_ROOT}/install -enable-gold --enable-binutils --enable-plugins
-
make all-gold all-binutils -j8
-
make install-gold install-binutils
-
cd ${LLVM_ROOT}
-
tar xvzf llvm-2.8.tgz
-
cd llvm-2.8/
-
mkdir build
-
cd build
-
../configure --prefix=${LLVM_ROOT}/install/ -with-binutils-include=${LLVM_ROOT}/binutils-2.20.90/include --enable-pic
-
make ENABLE_OPTIMIZED=1 -j8
-
make install
How to build perfevo?
-
tar -xvf perfevo.tar
-
cd perfevo
-
edit ./autoconf/configure.ac
2.1. LLVM_SRC_ROOT=${LLVM_ROOT}/llvm-2.8
2.2. LLVM_OBJ_ROOT=${LLVM_ROOT}/llvm-2.8/build
-
cd ./autoconf
-
./AutoRegen.sh //provide llvm directory and llvm-building directory when running this command
-
cd ..
-
mkdir build
-
cd build
-
../configure --with-llvmsrc=${LLVM_ROOT}/llvm-2.8 --with-llvmobj=${LLVM_ROOT}/llvm-2.8/build
-
make