From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,1ef3b84ca62fad7b X-Google-Attributes: gidfee84,public X-Google-Thread: 1094ba,1ef3b84ca62fad7b X-Google-Attributes: gid1094ba,public From: Dick Hendrickson Subject: Re: fortran error? Date: 1998/03/20 Message-ID: <6etspg$iov@bgtnsc02.worldnet.att.net>#1/1 X-Deja-AN: 335943860 Content-Transfer-Encoding: 7bit References: <3507A4A5.F8A7DDC2@matd.tu-graz.ac.at> <6ejfii$kbd@usenet.pa.dec.com> <350E95A7.41C6@still3.chem.columbia.edu> <350EDA13.2781@still3.chem.columbia.edu> <351181DB.2781@still3.chem.columbia.edu> Content-Type: text/plain; charset=us-ascii Organization: AT&T WorldNet Services Mime-Version: 1.0 Newsgroups: comp.lang.fortran,comp.unix.osf.osf1 Peter Shenkin wrote: > [snip] > > Craig Burley wrote: > > > > Peter Shenkin 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