[comp.lang.fortran] fortran preprocessor for in-line code substitution

johnl@ima.UUCP (04/30/87)

Original-sender: rochester!steinmetz!root@steinmetz..arpa


We are looking for software to read FORTRAN-77 source code and
do an in-line replacement of subroutine/function calls with the
source (also fortran) code from the called subroutine/function.

We're interested in such a tool for several reasons:

1) to allow (encourage) users to modularize code (good software
	engineering) without the penalty of subroutine call
	overhead for frequently called routines.

2) to develop portable applications on top of non-portable functions
	(bit manipulation, etc.).

3) to allow vectorizing/parallelizing compilers to "do their thing"
	across fortran module boundaries.

4) to restructure existing code in a more "parallel" sense (minimizing
	synchronization and communication).

Has anyone done something like this that is publically available?
Or are you looking for a good CS thesis project?  Failing that, do
enough people think this makes sense that we can get some support to
develop such a tool here, probably based on TOOLPACK.

p.s.  The next thing would be a tool to take a section of code
	out of a routine that had "evolved" beyond desirable size
	and "modularize" it automatically.
        Scott|  ARPA:      lamson@ge-crd.arpa
       Lamson|  UUCP:      lamson@sierra.steinmetz.ge.com
(518)387-5795|  GE DECnet: qtmvax::lamson
[There are a zillion Fortran source mungers out there, ratfor being the most
familiar to the Unix crowd.  I'd expect this has been done before, and invite
reports.  -John]
--
Send compilers articles to ima!compilers or, in a pinch, to Levine@YALE.ARPA
Plausible paths are { ihnp4 | decvax | cbosgd | harvard | yale | cca}!ima
Please send responses to the originator of the message -- I cannot forward
mail accidentally sent back to compilers.  Meta-mail to ima!compilers-request