🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.super
Article #441

Re: CRAY-YMP Fortran-to-C question

#441
From: Greg Stiehl
Date: Thu, 06 Jun 1991 13:34
22 lines
1603 bytes
figuei@arakis.rutgers.edu (Francisco Figueirido) writes:
> 
> I am trying to write a program (in C) which needs to read data from a
> file which was created by a Fortran-written program. The file in
> question consists of unformatted (i.e., binary) data. I know that the
> CRAY (I am using the one at PSC) writes, as most Fortran compilers,
> some sort of count (word count?) before the records, but cannot make
> sense of everything I see in the octal dump. Can someone direct me to
> where can I get more information about the format of unformatted (no
> pun intended!) files? Thanks for the help.

I would just write a small fortran function to read in the file, then link
the fortran funtion into your C program.  You will have to worry about
differences in argument passing, but that seems much easier than decoding
the fortran file format.  Why re-invent the wheel?

-greg.

----
Greg Stiehl (gstiehl@convex.com)
Graphics Software
Convex Computer Corp.
Technical Details
Message-ID: <1991Jun06.133409.125@convex.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!think.com!spool.mu.edu!uunet!convex!gstiehl@convex.com
References: <Jun.4.16.30.17.1991.306@arakis.rutgers.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!think.com!spool.mu.edu!uunet!convex!gstiehl@convex.com
From: gstiehl@convex.convex.COM (Greg Stiehl)
Newsgroups: comp.sys.super
Subject: Re: CRAY-YMP Fortran-to-C question
Keywords: Fortran, C, CRAY, I/O
Message-ID: <1991Jun06.133409.125@convex.com>
Date: 6 Jun 91 13:34:09 GMT
References: <Jun.4.16.30.17.1991.306@arakis.rutgers.edu>
Sender: usenet@convex.com (news access account)
Reply-To: gstiehl@convex.com
Organization: CONVEX Computer Corp, Graphics Software
Lines: 22
Nntp-Posting-Host: pixel.convex.com