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: Craig Burley Subject: Re: fortran error? Date: 1998/03/23 Message-ID: #1/1 X-Deja-AN: 336925773 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> <351296BC.167E@still3.chem.columbia.edu> <3512FE4B.2781@still3.chem.columbia.edu> Organization: Cygnus Support Newsgroups: comp.lang.fortran,comp.unix.osf.osf1 Craig Burley writes: > Peter Shenkin writes: > > > No, of course not. In many compilers the user can even control whether > > stack or heap is used at compile time. I'm just saying that when a > > stack is used, F77 implementations don't compute stack requirements > > and compare them at startup with available stack resources even when > > it would be easy to do so. I just noticed this -- I've been assuming you meant to say "...control whether stack or static memory is used at compile time". F77 code can be trivially compiled to an executable that makes no use whatsover of the stack *or* heap, and thus does not grow during run time. (Of course, the underlying system might mandate certain uses of stack/heap for things like starting up the program, calling the OS, etc., but it's unlikely that any of this would contribute to overflowing the stack or heap when run as part of a F77 program that is compiled to use neither!) -- "Practice random senselessness and act kind of beautiful." James Craig Burley, Software Craftsperson burley@gnu.org