Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!uunet!mcsun!ukc!edcastle!ngse18 From: ngse18@castle.ed.ac.uk (J R Evans) Newsgroups: comp.lang.fortran Subject: Looking for source-level inliner Message-ID: <10125@castle.ed.ac.uk> Date: 8 May 91 10:27:16 GMT Distribution: comp Organization: Edinburgh University Lines: 25 Discussion on comp.compilers notwithstanding :-), I'm looking for a basic Fortran to Fortran function inliner. The application is not demanding, and the relevant code is yet to be written, so I am not seeking an all-singing, all-dancing tool. Any suggestions welcome. Some background for the curious: I'm rewriting some ancient code for modelling seismic wave propagation in stratified media, and I'd like to be able to run the code on our Convex system as well as my workstation. Good program design and my intention to develop certain aspects of the program suggest that I should code the main algorithm - a series of manipulations of small matrices - as a collection of subroutine calls. The algorithm is certainly vectorizable, but the Convex compiler is apparently incapable of vectorizing a loop which contains such calls. An inliner would allow me to write and test the code in a legible, maintainable fashion on my workstation, and to transform it into vectorizable form for subsequent 'production' use on the Convex. I concede that I could perhaps produce readable code by careful use of a macro pre-processor, but I would prefer to construct modular code in standard Fortran. Thanks for your attention Russ Evans British Geological Survey, Edinburgh Principal mailbox : e_gs18@va.nmh.ac.uk