Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!exodus!exodus-bb!khb From: khb@chiba.Eng.Sun.COM (chiba) Newsgroups: comp.lang.fortran Subject: Re: Bug with file I/O? Message-ID: Date: 25 Jan 91 01:20:57 GMT References: <1991Jan24.145718.28686@alchemy.chem.utoronto.ca> <2136@travis.csd.harris.com> <11495@helios.TAMU.EDU> <8483@hub.ucsb.edu> Sender: news@exodus.Eng.Sun.COM Distribution: comp Organization: Sun MegaSystems Lines: 36 In-reply-to: quan@sol.surv.utas.oz's message of 25 Jan 91 00:20:32 GMT In article quan@sol.surv.utas.oz (Stephen Quan) writes: For those who wanted to know, I was running it on a Sparc 1, SunOS 4.0.3c, but I wouldn't have a clue what version our compiler is, all I can say is it is not the most recent version. for "modern" compiler releases the verbose command has been augmented (-v still does just what it used to): f77 -V quan.f version-id of "/home2/lang/SC0.0/SC0.0/f77pass1": SC0.0 f77 1.3.1 FCS 90/06/25 /home2/lang/SC0.0/SC0.0/f77pass1 "-P -cg87" quan.f /tmp/f77pass1.24751.s.0.s /tmp/f77pass1.24751.i.1.s /tmp/f77pass1.24751.d.2.s quan.f: MAIN test: version-id of "/home2/lang/SC0.0/SC0.0/as": SC0.0 90/02/12 ... for old (and certainly obsolete) versions cat /usr/lib/lang_info As documented on page 1 of the RTF (at least the last version of the compiler which supported this scheme, v1.2, put it there). I've long since trashed my personal docs from before then. For doing real C style I/O (streams, etc.) one might want to shield the application from the details, and have one small machine dependent bit of code... -- ---------------------------------------------------------------- Keith H. Bierman kbierman@Eng.Sun.COM | khb@chiba.Eng.Sun.COM SMI 2550 Garcia 12-33 | (415 336 2648) Mountain View, CA 94043