Xref: utzoo comp.lang.fortran:4136 comp.lang.c:34221 Path: utzoo!attcan!uunet!ogicse!orstcs!comphy.physics.orst.edu!ghe From: ghe@comphy.physics.orst.edu (Guangliang He) Newsgroups: comp.lang.fortran,comp.lang.c Subject: Re: Fortran vs. C for numerical work Message-ID: <21884@orstcs.CS.ORST.EDU> Date: 21 Nov 90 18:43:08 GMT References: Sender: usenet@orstcs.CS.ORST.EDU Reply-To: ghe@comphy.PHYSICS.ORST.EDU.UUCP (Guangliang He) Organization: IBM T.J. Watson Research, NY Lines: 22 In article bglenden@mandrill.cv.nrao.edu (Brian Glendenning) writes: > >It is often stated that Fortran is better than C for numerical work. >[Some deleted text here] It may not be true any more. A friend of mine brought a little fortran program (It is two big do loops with some instrinsic function calculation in the loop.) and the C translation of the fortran program. We compiled two program on a IBM RISC System 6000/530 with xlc and xlf. To my surprise, the excutable from C is faster than the excutable from Fortran by a few percent. >Brian >-- > Brian Glendenning - National Radio Astronomy Observatory >bglenden@nrao.edu bglenden@nrao.bitnet (804) 296-0286 Guangliang He ghe@physics.orst.edu Guangliang He ghe@PHYSICS.ORST.EDU hegl@ORSTVM.BITNET