GCC optimizations
Hendrik Visage
hvisage at envisage.co.za
Thu Dec 18 14:02:57 GMT 2003
On Thu, Dec 18, 2003 at 03:38:30PM +0400, Sergey Manucharyan wrote:
>
> I'm not so experienced in CPU optimization and
> I don't know, is there "backward compatibility"
> from the GCC's point of view, i.e. if I like to use
> "-msse", does it mean I don't need to use "-mmmx"
> (as a predecessor)?
> The site's FAQ doesn't cover such issues well.
> More other options are dubious also.
> I'd like to "squeeze" from the CPU more,
> but the being on the safe side is makes sense too :)
On freshmeat, search for gcc optimization(s) under their articles.
There actually is a guy that use a genetic algorithm to choose the
right options for a specific program for a specific CPU.
Interestingly he showed smal cases where -O1 +some other options are
faster than -O3...
Hendrik
More information about the lunar
mailing list