Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Endian problems...
@ 1995-11-07  5:00 decroix
  1995-11-08  5:00 ` Andrew Gallatin
  1995-11-09  5:00 ` Steve Lionel
  0 siblings, 2 replies; 5+ messages in thread
From: decroix @ 1995-11-07  5:00 UTC (permalink / raw)



I have a rather strange problem, but I think others must have run into this.
I have written an unformatted file on a cray Y-MP using IEEE floating point
format.  I can read this file on the Alpha, running Digital Unix Ver. 3.2c, by
setting a few compiler flags to force all i/o to be big endian or little endian.
Here's the problem:

I want to *read* a IEEE floating point file and *write* a dec-native unformatted
file.  The compiler line flags set ALL files to either big endian or little endian.
The way I did it on the cray was using the 'assign' command in an execution 
c-shell script, but assign doesn't appear to be available on the alpha.

How do I read a big endian and write a little endian unformatted file?
I have been working with in FORTRAN, so that solution would be prefered.
I know a little C, so if someone could tell me the pertinent statements,
I could probably muddle my way through!  ;)

Thanks for any help!

-Dave

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
David DeCroix                                  Mesoscale Modeling and Analysis
(919)515-1437(voice)           Dept of Marine, Earth, and Atmospheric Sciences
(919)515-1683(fax)                             North Carolina State University
decroix@brunt.meas.ncsu.edu                             Raleigh, NC 27695-8208

Team OS/2  -  Warping through a Ph.D.




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1995-11-13  5:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-11-07  5:00 Endian problems decroix
1995-11-08  5:00 ` Andrew Gallatin
1995-11-13  5:00   ` Lukas Rosenthaler
1995-11-13  5:00     ` Andrew Gallatin
1995-11-09  5: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