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: Optimal compile flags for ultra2 & power2


>>>>> Stephen Hocking-Senior Programmer PGS Tensor Perth writes:

Stephen> I was wondering what flags people use for best FP performance on these -
Stephen> b) IBM Power2.

	-mcpu=rios2 -ffast-math -lrs2

Make sure that -ffast-math is safe for your application -- it is a general
GCC optimization.  /usr/lib/librs2.a is an additional math library
provided by IBM that substitutes the hardware fsqrt instruction for the
library sqrt call and all places that it is used.

David


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