Re: [S] Fortran compilers

Paul Gilbert (pgilbert@bank-banque-canada.ca)
Thu, 19 Feb 1998 10:23:33 -0500


>(c) Use f2c and a C compiler, then dyn.load with Watcom, dll.load
>with others. There is a full port of f2c to Win32 at
>http://www-personal.umich.edu/~gsar, and for most Fortran code
>this is a very viable option. (After all, the GNU Fortran
>compiler is basically f2c + gcc.)

Or if you don't want to go to the trouble of installing f2c the following is
from the f2c documentation:

You may exercise f2c by sending netlib@netlib.bell-labs.com
a message whose first line is "execute f2c" and whose remaining
lines are the Fortran 77 source that you wish to have converted.
Return mail brings you the resulting C, with f2c's error
messages between #ifdef uNdEfInEd and #endif at the end.

This works well if your fortran is solid (i.e. - you're not in debugging mode).

Paul Gilbert

-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news