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: Peter Shenkin Subject: Re: fortran error? Date: 1998/03/20 Message-ID: <3512931B.41C6@still3.chem.columbia.edu>#1/1 X-Deja-AN: 335975445 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> <6etspg$iov@bgtnsc02.worldnet.att.net> Content-Type: text/plain; charset=us-ascii Organization: MacroModel Development Group, Columbia University Mime-Version: 1.0 Newsgroups: comp.lang.fortran,comp.unix.osf.osf1 Dick Hendrickson wrote: > > 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. Yes, I agree. But stack allocation of *automatics* is not generally the bottleneck here, and this is what both Craig and I were (I think) referring to. Most of us learned, even back in the F77 or earlier days, to avoid calling functions gazillions of times; in-line expansion, or the statement function, allows this to be done syntactically, though, without incurring the cost you refer to, which is a real one. -P. -- ************** In memoriam, Grandpa Jones, 1913-1998, R.I.P. ************** * Peter S. Shenkin; Chemistry, Columbia U.; 3000 Broadway, Mail Code 3153 * ** NY, NY 10027; shenkin@columbia.edu; (212)854-5143; FAX: 678-9039 *** *MacroModel WWW page: http://www.columbia.edu/cu/chemistry/mmod/mmod.html *