Subject: Re: [linux-audio-user] CPU clock - beware - Solved for now?
From: Chris Pickett (chris.pickett_AT_mail.mcgill.ca)
Date: Thu Jul 22 2004 - 06:00:51 EEST
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
This archive was generated by hypermail 2b28 : Thu Jul 22 2004 - 05:58:28 EEST