From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1094ba,10f7c56bf397ed71 X-Google-Attributes: gid1094ba,public X-Google-Thread: 103885,20ac8f08b884ba5 X-Google-Attributes: gid103885,public X-Google-Thread: 111c93,20ac8f08b884ba5 X-Google-Attributes: gid111c93,public From: jjd@sgi.com (Jeff Drummond) Subject: Re: Forcing 32-bit integers and math Date: 1998/10/16 Message-ID: <707pop$20h$1@walter-fddi.cray.com>#1/1 X-Deja-AN: 401827760 Distribution: world References: <705c5g$pl@bgtnsc01.worldnet.att.net> <705o8j$g5f@news1.newsguy.com> Organization: Cray Research, a subsidiary of Silicon Graphics, Inc. Newsgroups: comp.lang.fortran,comp.graphics.visualization,comp.os.linux.alpha [ followups trimmed to comp.lang.fortran ] In article <705o8j$g5f@news1.newsguy.com>, lindahl@pbm.com (Greg Lindahl) writes: |> "James Giles" 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.