Antony Suter <[EMAIL PROTECTED]> writes:

> > Guillaume Cottenceau wrote:
> > >
> > > till, you should use:
> > >
> > > export CXXFLAGS="-O3 -fomit-frame-pointer -fno-exceptions -fno-rtti -pipe -s 
>-mpentium -mcpu=pentium -march=pentium -ffast-math -fexpensive-optimizations"
> 
> I think that this is in error. I understand from gcc 2.95 documentation that
> only one of the flags -m, -mcpu and -march need be specified.
> 
> My understanding is that:-
> "-mcpu=pentium" specifies to optimise for the pentium but allow to run on
> other cpus.
> "-march=pentium" specifies to optimise fully for the pentium, dropping
> compatibility for other cpus.

actually the basic flags for mdk rpm's is:

-march=pentium -cpu=pentiumpro

it is supposed to:

. use opcodes of Pentium
. schedule for PentiumPro

titi wanted to do that because this should optimize good for P-2 and P-3,
since this architecture is close to ppro but far from pentium.


however let's note i had to do -march=pentium for some c++ code such as
gtkmm and clanlib, because gcc has a bug which prevents from successful
linkage with that parameter.


-- 
Guillaume Cottenceau -- Distribution Developer for MandrakeSoft
http://www.mandrakesoft.com/~gc/

Reply via email to