Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Dick Hendrickson <dick.hendrickson@worldnet.att.net>
Subject: Re: fortran error?
Date: 1998/03/20	[thread overview]
Message-ID: <6etspg$iov@bgtnsc02.worldnet.att.net> (raw)
In-Reply-To: 351181DB.2781@still3.chem.columbia.edu


Peter Shenkin wrote:
> 
[snip]
> 
> Craig Burley wrote:
> >
> > Peter Shenkin <shenkin@still3.chem.columbia.edu> writes:
> ...
> > The way I look at it, stack allocation is almost *never* a
> > bottleneck in any real application, but *heap* allocation often
> > is.  ...
> 
[snip]
> 
> Yup.  I agree with both of these points.
> 
[snip]

I'm not so sure it isn't (or won't be) a bottleneck.  There are lots 
of real codes that call a very small procedure gazillions of times.
Call overhead often dominates the run-time of the small procedure.
Fortran 90 potentially makes this worse with the ideas of 
encapsulation and information hiding and user defined operators.  
Lots of little routines that effectivelly do a couple of loads, an add,
and a store.  Adding several cycles to the entry and exit sequence
can have a big effect.

This doesn't mean compilers shouldn't do it, only that there is a
real cost.  Inlining helps, but some library code is only available
in binary form.

Dick Hendrickson



  parent reply	other threads:[~1998-03-20  5:00 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-03-12  5:00 fortran error? Armin Leuprecht
1998-03-12  5:00 ` robin
1998-03-16  5:00 ` Steve Lionel
1998-03-17  5:00   ` Peter Shenkin
1998-03-17  5:00     ` Craig Burley
1998-03-17  5:00       ` Peter Shenkin
1998-03-18  5:00         ` Toon Moene
1998-03-18  5:00           ` Jeff Drummond
1998-03-19  5:00           ` Peter Shenkin
1998-03-18  5:00         ` Craig Burley
1998-03-19  5:00           ` Peter Shenkin
1998-03-19  5:00             ` Craig Burley
1998-03-20  5:00               ` Nick Maclaren
1998-03-20  5:00               ` Peter Shenkin
1998-03-20  5:00                 ` Craig Burley
1998-03-20  5:00                   ` Peter Shenkin
1998-03-23  5:00                     ` Craig Burley
1998-03-23  5:00                       ` Summary (I hope) failure of automatic allocation; was, " Peter Shenkin
1998-03-24  5:00                         ` Craig Burley
1998-03-23  5:00                       ` Craig Burley
1998-03-23  5:00                         ` Peter Shenkin
1998-03-24  5:00                           ` Craig Burley
1998-03-24  5:00                             ` Nick Maclaren
1998-03-20  5:00                   ` Nick Maclaren
1998-03-20  5:00                     ` Richard Maine
1998-03-20  5:00                 ` Richard Maine
1998-03-20  5:00             ` Dick Hendrickson [this message]
1998-03-20  5:00               ` Craig Burley
1998-03-20  5:00                 ` Peter Shenkin
1998-03-23  5:00                   ` Craig Burley
1998-03-20  5:00               ` Peter Shenkin
1998-03-18  5:00     ` Steve Lionel
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