[linux-audio-user] CPU clock - beware - Solved for now?
chris.pickett at mail.mcgill.ca
Wed Jul 21 23:00:51 EDT 2004
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:
(there's bad and good advice in there)
More information about the Linux-audio-user