Kriston J. Rehberg (kriston@ibm.net)
Sun, 26 Apr 1998 12:09:39 -0400
Have you gotten a copy of the native SGI C compiler for Irix 5.3? If
you can get your hands on it, I believe it will install the
appropriate wrapper functions to enable 64-bit ABI support, but from
my point of view they appear to be merely "thunkers" that emulate the
functionality in the "n32" ABI (n32 was conceived to help people move
from the old 32-bit ABI to the new 64-bit ABI). Note that all
versions of GNU GCC do not support 64-bit registers on Irix 5.3 in any
event, and likewise GAS will not be able to handle the assembler code
(nor will the default Irix 5.3 "as"). Having said that, I would
assume that if you got a hold of the SGI native C compiler for Irix
5.3 you will get a 64-bit ABI compatibility layer, but you will not
get the advantages of the 64-bit ABI because the calls are "thunked"
to the 32-bit ABI. What a bummer! But many of us realized a while
ago that we should to Irix 6.x soon, but we've held off because GCC et
al did not support the 64-bit ABI. Now that Cygnus and SGI have
finally released a version of GCC that works with lib64, it actually
makes sense to upgrade and leave Irix 5.3 behind for good.
I hope this clears it up. Irix 5.3 vs. Irix 6.x is like the old SunOS
4.x vs. Solaris 2.x problems of long ago. Your fancy new box's
features are just not available until you upgrade your OS.
Enjoy,
Kris
Eric Young writes:
>
>Feeback for those that are interested in the asnwer to the origional
>question..
>
>On Tue, 21 Apr 1998, Kriston J. Rehberg wrote:
>> Whenever the unified version of Irix, (now known as version 6.5) is
[...]
>Ok, I've had the issue settled for me. For IRIX 5.x, the default 'as' command
>does not recognise the mips3 instruction set (64 bit extensions).
>When I switch on the -mips3 flag I get
>as ERROR: as is not installed in /usr/bin/../lib64/cmplrs/as
>gas -mips did not recognise the 'dli' instruction which was strange since
>gcc -s -mips3 xyz.c generated them in the assember output.
>
>So you can do it if you install 64 bit compilers. So in the interests of
>keeping things idiot proof, I'll have to default to 32bit assember for
>IRIX 5.x.
>
>It is a bit of a pity, On a 180mhz R10000 (IRIX 6.x) I get
> 512bit RSA 1024bit RSA 2048bit RSA
>R10000-180
> 32 bit C code 61.5 9.0 1.2
> 64 bit C code 142.4 23.7 3.4 (using long long)
> 32 bit asm 165.5 32.1 5.1 (mips1 instructions)
> 64 bit asm 297.6 69.6 11.8
>R4400-200 (IRIX 5.x)
> 32 bit asm 142.6 29.4 4.8
>Alpha 21164A-400
> 64 bit asm 449.6 95.3 15.7
>Pentium pro 200
> 32 bit asm 142.6 29.4 4.8
>(the results are the number of RSA private key operations/sec).
>
>So the MIPS cpus are very good RSA engines if the OS/compilers let you compile
>the stuff :-)
>
>eric
>
>
-- Kriston J. Rehberg ICQ: 3535970 http://kriston.net/ AOL: Kriston
The following archive was created by hippie-mail 7.98617-22 on Fri Aug 21 1998 - 17:16:59 ADT