Path: utzoo!attcan!uunet!wuarchive!brutus.cs.uiuc.edu!tut.cis.ohio-state.edu!ucbvax!hplabs!hpfcdc!mike From: mike@hpfcdc.HP.COM (Mike McNelly) Newsgroups: comp.lang.fortran Subject: Re: Question about variables local to subroutine Message-ID: <5140007@hpfcdc.HP.COM> Date: 23 Aug 89 20:49:39 GMT References: <24891@iuvax.cs.indiana.edu> Organization: HP Ft. Collins, Co. Lines: 13 If the compiler supports recursion (not in standard FORTRAN 77), it is unlikely that you can count on implicit value saving from one subprogram invocation to the next. Many (most?) implementations that support recursion use a separate stack frame for each function activation. Sometimes these stack frames align from one invocation to the next but there's certainly no guarantee that this will always be the case. If you need to save values use the standard SAVE statement. It will save you considerable grief should you ever port your program to a new architecture. Mike McNelly mike%hpfcla@hplabs.hp.com