Help - Search - Members - Calendar
Full Version: Best way to build Ogg Vorbis under Linux
Hydrogenaudio Forums > Lossy Audio Compression > Ogg Vorbis > Ogg Vorbis - General
ftc
Hi.

I'm trying to build Ogg Vorbis under Linux. I've tried with gcc-2.95 and gcc-3.2.

The binary which was produced by gcc-3.2 is a little bit faster (around 2-3%), here is how I made it:
- export CC=gcc-3.2
- export CFLAGS="-march=pentium2 -mcpu=pentium2" (I have a pentium II 233)
- ./configure
- make

Is there any flags that I can pass to gcc to optimize the result ?

I've made a similar build with lame, the gcc-3.2(+asm) version is 15 % faster than the gcc-2.95(+asm) version.
Sup3rFly
You could also add '-fomit-frame-pointer'. This should remove any debugging capabilities from the code as I recall it..
john33
QUOTE(ftc @ Dec 9 2002 - 12:14 PM)
Hi.

I'm trying to build Ogg Vorbis under Linux. I've tried with gcc-2.95 and gcc-3.2.

The binary which was produced by gcc-3.2 is a little bit faster (around 2-3%), here is how I made it:
- export CC=gcc-3.2
- export CFLAGS="-march=pentium2 -mcpu=pentium2" (I have a pentium II 233)
- ./configure
- make

Is there any flags that I can pass to gcc to optimize the result ?

I've made a similar build with lame, the gcc-3.2(+asm) version is 15 % faster than the gcc-2.95(+asm) version.

The other things I added using GCC under Windows, probably work as well, are:

CODE
-DVORBIS_IEEE_FLOAT32 -O3 -fstrength-reduce -fno-expensive-optimizations -finline-functions -fomit-frame-pointer -funroll-loops -ffast-math -foptimize-register-move -fdefer-pop
Gabriel
Be carefull with -fomit-frame-pointer with gcc 3.2 under win32...
ftc
QUOTE
The other things I added using GCC under Windows, probably work as well, are:

CODE
-DVORBIS_IEEE_FLOAT32 -O3 -fstrength-reduce -fno-expensive-optimizations -finline-functions -fomit-frame-pointer -funroll-loops -ffast-math -foptimize-register-move -fdefer-pop


Slower than the standard build (gcc-2.95) on Debian.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.