[linux-audio-user] CPU clock - beware - Solved for now?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Malcolm Baldridge wrote:>
> Your mp3 encoder is probably built "lamely".  An Athlon-XP runs optimally
> with '-mcpu=athlon-xp -march=athlon-xp -O2 -fomit-frame-pointer -s'.
> 
> When you build your mp3 encoder, try defining CFLAGS and CXXFLAGS prior to
> the configure invocation, such as:
> 
> (note, there's nothing after each \ except the carriage return)
> 
> CFLAGS='-mcpu=athlon-xp -march=athlon-xp -O2 -fomit-frame-pointer -s' \
> CXXFLAGS='-mcpu=athlon-xp -march=athlon-xp -O2 -fomit-frame-pointer -s' \
> LDFLAGS=-s ./configure --blah --blah --blah

-march=athlon-xp is for cpu-specific code, and you should use this if 
your binary will always run on the same architecture, whereas 
-mcpu=athlon-xp doesn't break compatability with other cpu's.  it's 
better to use only -march if you don't need to move things, and only 
-mcpu if you do (gcc probably ignores -march in the presence of -mcpu).

i imagine you'd have a blast at somewhere like this:

http://forums.gentoo.org/viewtopic.php?t=5717

(there's bad and good advice in there)

cheers,
chris

[Index of Archives]     [Linux Sound]     [ALSA Users]     [Pulse Audio]     [ALSA Devel]     [Sox Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux