This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Penitum II & egcs 1.1.1 oddity



  In message <36A85F12.653EF986@nibelung.demon.co.uk>you write:
  > I've compiled egcs 1.1.1 having tried the standard 1.1.1 release and the
  > 1.1.1 patched release.  I've compiled on RedHat Linux 5.2 / PII 400.  I
  > compiled using 'configure --enable-shared --enable-haifa'.
  > 
  > Is it normal that the compiler is sending -mcpu=pentiumpro but
  > -march=pentium by default?  For example, this is the output from 'gcc
  > -fverbose-asm -S test.c'
Yes, this is normal.

It means schedule for a ppro, but generate (effectively) common-mode
instructions (ie your code can run on all x86 variants).


  > Does it make a lot of difference compiling using -march=pentium as
  > opposed to -march=pentiumpro on a Pentium II?
"a lot" is a relative term.

-march=pentiumpro will enable ppro specific instructions, namely conditional
moves, which for some code can be a nice improvement.  For other code it won't
help in any noticable way.  Just depends on your application.

jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]