ndeng@EULER.BERKELEY.EDU (10/11/90)
I just wonder if anybody has adopted the f2c program (avail. from netlib) to a PC environment (Presumably 386 boxes), either under dos-extender, or os/2, or SCO Unix/Xenix? Can this be done? If anybody has done this, I believe many netters (especially in this group) will be interested in hearing your experience.
glenn@suphys.physics.su.OZ.AU (Glenn Geers) (10/12/90)
From article <9010110815.AA09349@euler.Berkeley.EDU>, by ndeng@EULER.BERKELEY.EDU: > > I just wonder if anybody has adopted the f2c program (avail. from netlib) to > a PC environment (Presumably 386 boxes), either under dos-extender, or os/2, > or SCO Unix/Xenix? Can this be done? If anybody has done this, I believe many > netters (especially in this group) will be interested in hearing your experience. f2c works fine under SCO Xenix 2.3.2 and so presumably under SCO Unix (just use the Xenix binary :-) ). The C compiler I am using is gcc (with Steve Bleazard's patches). The largest all fortran code I have compiled is spice2g.6 and that went through without a hitch. You do have to make a couple of minor changes to the makefiles in libI77 and libF77 as the Xenix supplied /lib/ldr does not support the -x option. I'm currently working on some mixed language stuff for my PhD (C + fortran) and I'm having no problem using f2c. The code passes 2-d arrays of structs (complex numbers, ok) back and forth between C and fortran without trouble. f2c is a *great* piece of work, but treat it as a *compiler* some of the C code is really ugly. Cheers, Glenn glenn@qed.physics.su.oz.au -- Glenn Geers | "So when it's over, we're back to people. Department of Theoretical Physics | Just to prove that human touch can have The University of Sydney | no equal." Sydney NSW 2006 Australia | - Basia Trzetrzelewska, 'Prime Time TV'
mark@adec23.uucp (Mark Salyzyn) (10/12/90)
>I just wonder if anybody has adopted the f2c program (avail. from netlib) to >a PC environment (Presumably 386 boxes), either under dos-extender, or os/2, >or SCO Unix/Xenix? Can this be done? If anybody has done this, I believe many >netters (especially in this group) will be interested in hearing your experience. I have it compiled and running just fine on a SCO XENIX 2.3.3 386GT development system. Only caution, do NOT use optimization !!! Ciao, -- Mark Salyzyn ..!alberta!adec23!mark