Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!VAX1.CC.UAKRON.EDU!mcs.kent.edu!usenet.ins.cwru.edu!eagle!data.nas.nasa.gov!xenon.arc.nasa.gov!dueker From: dueker@xenon.arc.nasa.gov (The Code Slinger) Newsgroups: comp.lang.fortran Subject: FORTRAN and (un)SAVEd vars Keywords: FORTRAN 77, SAVE Message-ID: <1991Feb28.004447.3728@nas.nasa.gov> Date: 27 Feb 91 21:43:27 GMT Sender: dueker@xenon.arc.nasa.gov Reply-To: dueker@xenon.arc.nasa.gov Followup-To: comp.lang.fortran Organization: Computer Sciences Corp Lines: 28 News-Software: VAX/VMS VNEWS 1.3-4 Here's our situation: We've received a lot of FORTRAN 77 code from another group of people. This code wasn't exactly written for portability. Among other(!) problems, some variables in some of these routines expect to retain their values from invocation to invocation. This, of course, is not guaranteed (except maybe on certain systems). We'd like to find out if anybody knows of a program that will process FORTRAN 77 code and determine if any of the variables in a given subroutine should be SAVEd. (We could do this by hand, but there's a lot of code involved, and some of those subroutines are BIG!) So, to avoid (if possible) having to write something like this ourselves, we'd like to know if this has already been done. (Who wants to reinvent the wheel, anyway?) We'd prefer public domain/shareware/etc., but ... Adv(Thanks)anc for any info/help/pointers/etc. Chris P.S. We're currently using VAX/VMS and SUN/UNIX OS's. ------------------------------------------------------------------------ "Ah, Benson, you are so mercifully free of the ravages of intellegence!" "Oh, thank you, Master!" - from the movie, TIME BANDITS ------------------------------------------------------------------------ dueker@xenon.arc.nasa.gov | Chris Dueker (The Code Slinger) chris@chuck.arc.nasa.gov | Mtn. View, CA (Sillycon Valley!)