Xref: utzoo comp.lang.c:32119 comp.lang.fortran:3841 Path: utzoo!attcan!uunet!aplcen!samsung!cs.utexas.edu!milano!uudell!bigtex!texsun!exodus!exodus-bb!khb From: khb@chiba.Eng.Sun.COM (Keith Bierman - SPD Advanced Languages) Newsgroups: comp.lang.c,comp.lang.fortran Subject: Re: Fortran Main with C I/O Message-ID: Date: 24 Sep 90 00:46:37 GMT References: <1044@helens.Stanford.EDU> <273@cadlab.sublink.ORG> Sender: news@exodus.Eng.Sun.COM Followup-To: comp.lang.c Organization: Sun MegaSystems Lines: 20 In-reply-to: staff@cadlab.sublink.ORG's message of 21 Sep 90 07:55:04 GMT >apparently the Fortran I/O model mismatches these machines and/or Unix f77 I/O is often bad performance wise, but this is due to history, not technical inevitability. Converting a fortran main to a C main to ensure the right I/O environment usually is not that hard. Just cobble up a virtually empty C main which calls Fmain (which is your real program, written in fortran). I would hazard to guess that with appropriate library/loader munging you might be able to avoid this slight of hand. Personally, I prefer to modify the source code for maxiumum portability ... but I recognize that it may be easier/more expiedient to alter the environment. -- ---------------------------------------------------------------- Keith H. Bierman kbierman@Eng.Sun.COM | khb@chiba.Eng.Sun.COM SMI 2550 Garcia 12-33 | (415 336 2648) Mountain View, CA 94043