Hello,
QUESTION:
One of our users has a need for a FORTRAN to C conversion utility. Does
one exist for Digital UNIX?
SUMMARY:
The overwhelming recommendation is a free kit called f2c developed by AT&T.
GNU has a pointer to it at
ftp://ftp.uu.net:/systems/gnu/f2c.README but the
kit is actually available at
ftp://netlib.att.com:/netlib/f2c.
RESPONDERS:
Burch Seymour RTPS <bseymour_at_encore.com>
Sigismondo Boschi <net1701_at_iperbole.bologna.it>
Pat Villani <patv_at_unx.dec.com>
Sid Fagan - Sublimation MAN (NID) <fagan_at_large.fnal.gov>
bernards_at_ecn.nl
Rich Kulawiec <rsk_at_itw.com>
Laurent de Munico <laurent_at_poly.polytechnique.fr>
Brian Sheehan <sheehan_at_scripps.edu>
Phil Farrell <farrell_at_pangea.Stanford.EDU>
Pedro JosM-i Lobo Perea <pjlobo_at_euitt.upm.es>
Tom Webster <webster_at_europa.mdc.com>
Kurt Knochner <Kurt.Knochner_at_Physik.TU-Muenchen.DE>
Bill Bathurst <bathurst_at_blegga.freerange.com>
Harald Lundberg <hl_at_tekla.fi>
"Robert L. McMillin" <rlm_at_syseca-us.com>
Jean Schuller <schuller_at_crnal4.in2p3.fr>
Winfried Huber <win_at_tukan.ffb.eunet.de>
MY INSTALL NOTES:
- mason: install f2c 19961209
Important documents; readme, src/README, libF77/README, libI77/README.
. cd /usr/local/src/f2c
. ftp ftp.uu.net:/systems/gnu/f2c.README
. ftp netlib.att.com:/netlib/f2c/[src/*, libf77.Z,libi77.Z,f2c.ps.Z]
. uncompress *.Z src/*.Z
. sh libf77
. sh libi77
. cd src
. mv f2c.h f2c.h.orig (per main readme for Alpha systems)
. sed 's/long //' f2c.h.orig > f2c.h
. mv .depend .depend.orig
. modify makefile (optimize)
. make f2c >& make.log&
. mkdir /usr/local/f2c
. cp -p f2c.h /usr/local/f2c
. cd ../libI77
. modify makefile (add -DAllow_TYQUAD, per main readme for Alpha)
add -I/usr/include/f2c)
. make >& make.log&
. cd ../libF77
. modify makefile (add -I/usr/include/f2c)
. make >& make.log&
. cd ..
. cp -p libF77/libF77.a libf2c.a
. ar ruv libf2c.a libI77/*.o
. ranlib libf2c.a
. cp -p libf2c.a /usr/local/f2c
. cp -p src/f2c /usr/local/bin
. cp -p src/f2c.1t /usr/local/man/man1/f2c.1
. catman -w
. (cd src;make clean)
. (cd libF77;make clean)
. (cd libI77;make clean)
TEST:
. create test.f
. src/f2c < test.f > test.c
. cc -o test test.c -L/usr/local/f2c -I/usr/local/f2c -lf2c
--
Regards,
Richard Jackson George Mason University
Computer Systems Senior Engineer UCIS / ISO
Computer Systems Engineering
Received on Tue Dec 17 1996 - 17:20:41 NZDT