Path: utzoo!utgpu!watserv1!watmath!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!wuarchive!cs.utexas.edu!sun-barr!newstop!exodus!exodus-bb!khb From: khb@chiba.Eng.Sun.COM (Keith Bierman fpgroup) Newsgroups: comp.lang.fortran Subject: Re: Fortran vs. C for numerical work (SUMMARY) Message-ID: Date: 29 Nov 90 18:46:25 GMT References: <7097@lanl.gov> <17680:Nov2806:04:1090@kramden.acf.nyu.edu> <7928@uwm.edu> <2619@charon.cwi.nl> Sender: news@exodus.Eng.Sun.COM Organization: Sun MegaSystems Lines: 20 In-reply-to: dik@cwi.nl's message of 29 Nov 90 02:13:10 GMT In article <2619@charon.cwi.nl> dik@cwi.nl (Dik T. Winter) writes: ... on those libraries. Some suggested calling the Fortran routines from C; may I respectful ask how to call the following Fortran routine from C on a Sun without writing intermediate Fortran code? REAL FUNCTION F() F = 1.0 RETURN END See page 163 of the Sun Fortran User's Guide (f77v1.3). -- ---------------------------------------------------------------- Keith H. Bierman kbierman@Eng.Sun.COM | khb@chiba.Eng.Sun.COM SMI 2550 Garcia 12-33 | (415 336 2648) Mountain View, CA 94043