Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Helge Kreutzmann <kreutzm@itp.uni-hannover.de>
To: axp-list@redhat.com
Subject: Re: Numerical simulations on alphalinux: C or fortran?
Date: Thu, 4 Mar 1999 14:34:05 +0100 (CET)	[thread overview]
Message-ID: <Pine.A41.3.96.990304143015.11464A-100000@deneb.itp.uni-hannover.de> (raw)
In-Reply-To: <99030414103501.00433@bacchus.pc1.uni-duesseldorf.de>

Hallo !
On Thu, 4 Mar 1999, Jochen Kuepper wrote:
> 
> On Don, 04 Mär 1999 Lorenzo Bernardi wrote:
> >
<cut>
> >  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.
<cut> 
> 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


  reply	other threads:[~1999-03-04 13:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-04 11:05 Numerical simulations on alphalinux: C or fortran? Lorenzo Bernardi
1999-03-04 11:30 ` Andrei A. Dergatchev
1999-03-04 18:55   ` Chris Albertson
1999-03-04 13:00 ` Jochen Kuepper
1999-03-04 13:34   ` Helge Kreutzmann [this message]
1999-03-04 18:54     ` Jochen Kuepper
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox