I have tried to compile STK with optimizations. But I don't have more speed.
This is what I have done:
- {l Code}: {l Select All Code}
export TARGET=powerpc-linux-gnualtivec
- {l Code}: {l Select All Code}
export CFLAGS="-mcpu=power4 -mtune=power4 -maltivec -mabi=altivec -fno-strict-aliasing -O2 -pipe"
- {l Code}: {l Select All Code}
export CXXFLAGS="${CFLAGS}"
I have compiled all STK dependencies with optimizations:
libogg-1.3.0
libvorbis-1.3.3
fribidi-0.19.5
openal-soft-1.15.1
Environment variables for Irrlicht:
- {l Code}: {l Select All Code}
CXXFLAGS += -fexpensive-optimizations -O3 -mcpu=power4 -mtune=power4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe^M
- {l Code}: {l Select All Code}
CFLAGS := -O3 -fexpensive-optimizations -mcpu=power4 -mtune=power4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe -DPNG_THREAD_UNSAFE_OK -DPNG_NO_MMX_CODE -DPNG_NO_MNG_FEATURES^M
- {l Code}: {l Select All Code}
mkdir cmake_build
cd cmake_build
cmake ..
STK was compiled with all optimizations and optimized libraries. But the speed is the same as the STK package without optimizations.
Any ideas?
My system:
