Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!haven!udel!nigel.ee.udel.edu!mccalpin From: mccalpin@perelandra.cms.udel.edu (John D. McCalpin) Newsgroups: comp.lang.fortran Subject: Re: Renumbering labels and formats in FORTRAN Message-ID: Date: 4 Nov 90 13:36:12 GMT References: <1990Nov4.063805.11715@portia.Stanford.EDU> Sender: usenet@ee.udel.edu Distribution: na Organization: College of Marine Studies, U. Del. Lines: 30 Nntp-Posting-Host: perelandra.cms.udel.edu In-reply-to: rsingh@portia.stanford.edu's message of 4 Nov 90 06:38:05 GMT > On 4 Nov 90 06:38:05 GMT, rsingh@portia.stanford.edu (Rajesh Kumar Singh) said: > I need to "sanitize" my fortran source code: by sanitizing, I mean > renumbering > all the labels (and any references to them) in a constant, monotonic > fashion and > move all the format statements at the end of any module. I remember using > one such program with MTS fortran. I am sure there are programs around > to do this on Mac/Sun/IBM PC. Help! I guess this needs to go into a Frequently Asked Questions posting (along with the info about the f2c converter). TOOLPACK is a large package of tools for the transformation of FORTRAN programs. It includes precision conversion, flow-control restructuring, some style re-writing, pretty-printing, and more. It is available from a number of sources, including anonymous ftp from louie.udel.edu (in the pub directory). You will need at least 10-15 MB of disk space to compile it and about 7 MB to store the executables on most systems. It is known to compile and execute correctly on Sun-3, Sun-4, and Silicon Graphics 4D systems, though the makefiles are brain-damaged and in need of re-writing.... -- John D. McCalpin mccalpin@perelandra.cms.udel.edu Assistant Professor mccalpin@vax1.udel.edu College of Marine Studies, U. Del. J.MCCALPIN/OMNET