From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 13650 invoked from network); 4 Mar 1999 13:38:42 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 4 Mar 1999 13:38:42 -0000 Received: from mgate2.uni-hannover.de (root@mgate2.uni-hannover.de [130.75.2.5]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id IAA14096 for ; Thu, 4 Mar 1999 08:34:38 -0500 Received: from deneb.itp.uni-hannover.de by mgate2.uni-hannover.de with LocalSMTP (PP) with ESMTP; Thu, 4 Mar 1999 14:34:06 +0100 Received: from localhost (kreutzm@localhost) by deneb.itp.uni-hannover.de (AIX4.2/UCB 8.7/8.7) with ESMTP id OAA11738 for ; Thu, 4 Mar 1999 14:34:06 +0100 (CET) Date: Thu, 4 Mar 1999 14:34:05 +0100 (CET) From: Helge Kreutzmann To: axp-list@redhat.com Subject: Re: Numerical simulations on alphalinux: C or fortran? In-Reply-To: <99030414103501.00433@bacchus.pc1.uni-duesseldorf.de> Message-ID: MIME-version: 1.0 Content-type: TEXT/PLAIN; charset="ISO-8859-1" Content-transfer-encoding: 8BIT Hallo ! On Thu, 4 Mar 1999, Jochen Kuepper wrote: > > On Don, 04 Mär 1999 Lorenzo Bernardi wrote: > > > > My question is will I gain in term of speed to transfer my code from > >fortran to C? I will then use egcc compiler plus the new libcpml. > >It seems that C compiler are evolving faster thna fortran compiler and > >thus they can be better for fp operation than fortran compiler. Or maybe > >the enhancement are different. > Well, in my experience C looses against FORTRAN most of the time, but they are > close, usually. If you have some complex stuff, you can write nice and fast C++ > programs, though, esp. if you use inline functions efficiently. Often these are > faster than corresponding FORTRAN, since nowadays people usually don't write > spaghetti code any more - even if they use FORTRAN77 :-) > > But in the end, I would say, speed mostly depends on good algorithms and > efficient implemetations, not on the programming language. There is an interesting comparison done by the University of Cambridge regarding the possibilities to optimes fortran vs. C code. You can read it under http://www.hpcf.cam.ac.uk/C_rant.html It suggests that FORTRAN code can be optimized more easily thus (at least in theory) providing faster code. Helge -- 533 Mhz -- 533 Mhz -- 533 Mhz -- 533 Mhz -- 533 Mhz -- 533 Mhz -- 533 Mhz -- Is your penguin 64 bit ? --> http://www.stud.uni-hannover.de/~helgek Helge.Kreutzmann@stud.uni-hannover.de kreutzm@itp.uni-hannover.de