Article View: gnu.misc.discuss
Article #2273Re: Q: Fortran unformatted i/o with GNU f2c/gcc problem.
From: Chris Metzler
Date: Wed, 30 Sep 1998 00:00
Date: Wed, 30 Sep 1998 00:00
44 lines
2561 bytes
2561 bytes
In article <lpaF02tvI.5Aw@netcom.com> lpa@netcom.com (Pierre Asselin) writes: >metzler@oddjob.uchicago.edu (Chris Metzler) writes: > >>Anyway, I can use any help I can get. I'm on a Red Hat Linux machine. >>It doesn't have full g77 installed -- f77 or g77 invokes an f2c >>preprocessor, followed by gcc. Fortran programs compiled this way >>don't seem to be able to read Fortran unformatted binary files. > >Hem, I don't know that Fortran unformatted files were ever meant to be >portable across different platforms. I don't know whether they were meant to or not; but I've had no problems with portability for 14 years, which was why I was surprised here. > It doesn't help that you don't >tell us what your "other machine" is. Sorry; brain fart on my part. i686. Anyway, your explanation made perfect sense. I fetched a converter from a Linux software archive, and my problem went away. I was hoping, though, that some sort of compiler option could *force* the file reads/writes to be done in the opposite way. The Fortran program I'm really porting over here writes hundreds of 14 MB files every time it runs (and I run it constantly); and I use a large number of different platforms at the same time, basically wherever I can get CPU cycles. It would be nice if external conversion wasn't necessary. But if it is, it is. Anyway, thanks for cluing me in re: unformatted file strucutre. -c -- Chris Metzler Work Address: Theoretical Astrophysics 630-840-3662 (office) Fermi National Accelerator Lab metzler@oddjob.uchicago.edu (play) P.O. Box 500, MS-209 cmetzler@spam-me-not.fnal.gov (work) Batavia, IL 60510 USA "As a child I understood how to give; I have forgotten this grace since I have become civilized." - Chief Luther Standing Bear
Technical Details
Message-ID:
<F041A8.Ix@midway.uchicago.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<F02psK.Apn@midway.uchicago.edu> <lpaF02tvI.5Aw@netcom.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,e0781954572e0423 X-Google-Attributes: gid11318c,public X-Google-Thread: 1025b4,e0781954572e0423 X-Google-Attributes: gid1025b4,public From: metzler@oddjob.uchicago.edu (Chris Metzler) Subject: Re: Q: Fortran unformatted i/o with GNU f2c/gcc problem. Date: 1998/09/30 Message-ID: <F041A8.Ix@midway.uchicago.edu> X-Deja-AN: 396431684 Sender: news@midway.uchicago.edu (News Administrator) X-Nntp-Posting-Host: oddjob.uchicago.edu References: <F02psK.Apn@midway.uchicago.edu> <lpaF02tvI.5Aw@netcom.com> Organization: University of Chicago, Astronomy and Astrophysics Newsgroups: gnu.misc.discuss,gnu.gcc.help