Optimal compile flags for ultra2 & power2
David Edelsohn
dje@watson.ibm.com
Tue Sep 22 09:00:00 GMT 1998
>>>>> 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
More information about the Gcc
mailing list