Tuesday, February 23, 2010

Compiling wine with processor optimizations

Hi everyone,

Just thought I would show you all a quick trick to compile wine to be as fast as it can be!

You need to look into your compiler (GCC) and which flags it will support for your processor. Since I have an AMD Phenom II, I used -march=amdfam10 for GCC.

Here is a link where you can find out which -march to use :


Note that link is for AMD not sure where intel info is.

CFLAGS="-march=amdfam10 -O2 -pipe -fomit-frame-pointer"
export CFLAGS
./configure --disable-test
make depend && make
sudo make install

And we're done!

No comments:

Post a Comment