* Endian problems with the Alpha
@ 1996-05-01 4:00 Kevin Barrett
1996-05-04 4:00 ` Steve Lionel
0 siblings, 1 reply; 2+ messages in thread
From: Kevin Barrett @ 1996-05-01 4:00 UTC (permalink / raw)
Cc: kbarrett
We have an Encore Infinity R/T model 300 system (6U VME with an Alpha
SBC and reflective memory) connected via reflective memory to several
devices, including an Encore RSX machine. It is being used primarily
as a high-throughput interface system between the devices. Our problem
is that the Alpha's data representation is little-endian, but all the
connected devices are big-endian. The reflective memory system does not
do conversions or swapping, so we are stuck with having to explicitly
convert any data the Alpha has to process itself. Does anyone know of
a facility provided by OSF's C compiler (or the Alpha itself) to automatically
operate on big-endian values? Might there be a library of good (efficient)
conversion routines we can use? We also have to do some conversions of
floating-point formats (IEEE/IBM). Any response would be appreciated...
Thanks!
- Kevin Barrett
kbarrett@sim.irk.aetc.af.mil
(I am posting this message from my personal account; please reply to
the above address. Thanks... KB-)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Endian problems with the Alpha
1996-05-01 4:00 Endian problems with the Alpha Kevin Barrett
@ 1996-05-04 4:00 ` Steve Lionel
0 siblings, 0 replies; 2+ messages in thread
From: Steve Lionel @ 1996-05-04 4:00 UTC (permalink / raw)
In article <31883EE2.59FEC2A2@rt66.com>, Kevin Barrett <kbarrett@rt66.com>
writes:
>Does anyone know of
>a facility provided by OSF's C compiler (or the Alpha itself) to automatically
>operate on big-endian values? Might there be a library of good (efficient)
>conversion routines we can use? We also have to do some conversions of
>floating-point formats (IEEE/IBM). Any response would be appreciated...
The C compiler doesn't provide this (though Fortran does if you use
unformatted I/O.) Endian-conversion is a rather simple task, especially
when done with shifts and masks.
There is a cvt_ftof routine (see the man page for it) that will convert
between IEEE and IBM System\360 format (among others). IBM workstations use
big-endian IEEE. I think that cvt_ftof may even be able to do
endian-conversions on IEEE floats.
Steve Lionel mailto:lionel@quark.zko.dec.com
Fortran Development http://www.digital.com/info/slionel.html
Digital Equipment Corporation
110 Spit Brook Road, ZKO2-3/N30
Nashua, NH 03062-2698 "Free advice is worth every cent"
For information on Digital Fortran 90, see http://www.digital.com/info/hpc/f90/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1996-05-04 4:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-05-01 4:00 Endian problems with the Alpha Kevin Barrett
1996-05-04 4:00 ` Steve Lionel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox