From: jjd@sgi.com (Jeff Drummond)
Subject: Re: Forcing 32-bit integers and math
Date: 1998/10/15 [thread overview]
Message-ID: <70522s$4gb$1@walter-fddi.cray.com> (raw)
In-Reply-To: 36255A0B.4C40@wizard.com
[ followups set to comp.lang.fortran ]
In article <36255A0B.4C40@wizard.com>, "H.W. Stockman" <hwstock@wizard.com> writes:
|> Greg Lindahl wrote:
|> [...]
|> > Linux/Alpha writes an 8-byte record length in bytes.
|> >
|> > Linux/x86 writes a 4-byte record length in bytes.
|> >
|> > It is fairly trivial to write a conversion program. There is a
|> > record length at the start and end of each record.
|>
|> I was under the impression that the exact form of the record
|> delimiter (for unformatted files) is not specified by F77. In
|> most FORTRANs I have used, the delimiter is simply an integer
|> that corresponds to the record length, as implied in the
|> previous discussion. However, I think other FORTRANs (e.g.
|> Lahey) have more complicated record delimiters. Thus two FORTRANs
|> on the same platform may not seemlessly exchange unformatted files--
|> que no?
That is correct. The Fortran standard specifically leaves the structure
of unformatted files up to the individual implementation. Since the
standard also requires various record positioning capabilities (i.e.,
BACKSPACE and skipping records), that effectively requires that there be
_some_ structure.
-Jeff jjd@sgi.com
--
"Are we going to push it to the edge of the envelope?" --Pinky
"No, Pinky. We may, however, reach the sticky part." --The Brain
next prev parent reply other threads:[~1998-10-15 4:00 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <YQsT1.507$525.1552696@ptah.visi.com>
[not found] ` <6vt65k$5hp$1@walter-fddi.cray.com>
1998-10-14 4:00 ` Forcing 32-bit integers and math G. Hugh SONG
1998-10-14 4:00 ` Greg Lindahl
1998-10-15 4:00 ` H.W. Stockman
1998-10-15 4:00 ` Greg Lindahl
1998-10-15 4:00 ` James Giles
1998-10-15 4:00 ` Richard Maine
1998-10-18 4:00 ` James Giles
1998-10-15 4:00 ` Greg Lindahl
1998-10-16 4:00 ` Jeff Drummond
1998-10-16 4:00 ` James Giles
1998-10-15 4:00 ` Jeff Drummond [this message]
1998-10-15 4:00 ` Jeff Drummond
1998-10-15 4:00 ` Toon Moene
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox