gmpbench: Ultra40 Solaris10 Studio11

Marc Glisse marc.glisse+gmp at normalesup.org
Tue Apr 10 13:25:32 CEST 2007


On Mon, 9 Apr 2007, Torbjorn Granlund wrote:

>  I have never used the media intrinsics. On the other hand, studio 12 now
>  understands the inline assembly syntax of gcc. Or actually only most of it
>  (I believe it does not understand the commutative '%' for instance). So if
>  you have a support contract with Sun, your best bet is probably to ask
>  them to make the compiler understand the code written for gcc in gmp.
>
> Why would one want to do that?  It will not be used by longlong.h,
> since it is conditional on __GNUC__.

But then it is pretty trivial to add "|| defined __SUNPRO_C" to the lines 
checking for __GNUC__ in longlong.h. What else would you advise for 
someone who wants optimal performance using Sun's compiler?

> Of course, Sun can do an Intel and have their compiler define
> __GNUC__, and cause complete confusion.

They don't intend to (they have said so pretty clearly).

-- 
Marc Glisse


More information about the gmp-devel mailing list