From: jjd@sgi.com (Jeff Drummond)
Subject: Re: Forcing 32-bit integers and math
Date: 1998/10/16 [thread overview]
Message-ID: <707pop$20h$1@walter-fddi.cray.com> (raw)
In-Reply-To: 705o8j$g5f@news1.newsguy.com
[ followups trimmed to comp.lang.fortran ]
In article <705o8j$g5f@news1.newsguy.com>, lindahl@pbm.com (Greg Lindahl) writes:
|> "James Giles" <jamesgiles@worldnet.att.net> writes:
|>
|> > All Fortran I/O libraries I've seen (and I've even written one) have
|> > a record mark which contains both the length of the next record
|> > and the length of the preceeding record.
|>
|> Conceptual difference: I call that 2 record marks. At the start of the
|> file there is only 1 record mark.
|>
|> > On Crays, this was represented
|> > as a 64-bit quantity: the first 32 were the length of the preceeding
|> > record and the second 32 were the length of the following record.
That's not the default format. It's what we call f77 format, which is
just our implementation of the usual Unix Fortran format.
|> I just looked on a Cray and it seems to have changed formats between
|> f77 and f90. The new format is considerably different.
As the maintainer of the run-time library, I can assure you that the
default file formats have not changed between cf77 and f90. They haven't
changed appreciably in the 17 years I've been at Cray (now SGI).
|> unicos% od o
|> 0000000000000 000000 000000 000000 000001 000000 000000 000000 000020
|> [ r1 length ? ] [ record 1 data ]
[ r1 length amonst other things ]
|> 0000000000020 100000 000000 000000 000001 000000 000000 000000 000021
|> [ combo of r1 and r2 len? ] [ record 2 data ]
No, the upper bit (in the word starting at byte 20)
indicates that the previous record has been terminated
and that a new record is starting.
|> 0000000000040 100000 000000 000000 000000 160000 000000 000000 000000
|> [ r2 length? ]
No, it indicates that the second record has been
terminated. The word starting at byte 48 is the endfile
indicator.
|> 0000000000060 170000 000000 000000 000000 000000 000000 000000 000000
^^ end of data.
|> 0000000000100 000000 000000 000000 000000 000000 000000 000000 000000
|> *
|> 0000000010000
|>
|> A bit satantic for my taste,
Satanic? You have no idea.
|> with the reverse lengths reversed?
No, what you are interpreting as the reverse lengths is actually
other information in the record control word.
-Jeff jjd@sgi.com
--
The mistakes of the past become the archetypes of the future.
next prev parent reply other threads:[~1998-10-16 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 [this message]
1998-10-16 4:00 ` James Giles
1998-10-15 4:00 ` Jeff Drummond
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