Need routine to convert floating-point from Sun SPARC to DEC MIPS
Ralph Becker-Szendy
ralph at uhheph.phys.hawaii.edu
Sat May 11 22:52:40 AEST 1991
The subject line says it all. I need a subroutine (in FORTRAN or better in C)
which converts the 32-bit floating point format from a Sun SPARC into DEC
MIPS format. The opposite direction would be neat too, but is not vital at
this point. The byte-swapping has already been done (pretending the number
was a 32-bit integer), but I can trivially undo that. If it matters, what we
are really talking about are FORTRAN REAL*4 numbers stored UNFORMATTED in a
file.
I know about the option to have the DEC MIPS FORTRAN runt-time-library do the
conversion (there is some keyword in the file OPEN statement which declares
this file to be automatically converted during unformatted IO), but we are
still at Ultrix V4.0, so I guess we don't have that version of the FORTRAN
compiler quite yet.
I hope such a routine could be found in the manual set somewhere, but at
least not in the places I checked.
--
Ralph Becker-Szendy UHHEPG=24742::RALPH (HEPNet,SPAN)
University of Hawaii RALPH at UHHEPG.PHYS.HAWAII.EDU
High Energy Physics Group RALPH at UHHEPG.BITNET
Watanabe Hall #203, 2505 Correa Road, Honolulu, HI 96822 (808)956-2931
More information about the Comp.unix.ultrix
mailing list