xref: /csrg-svn/old/pcc/mip/FCONVERT (revision 43126)
1*43126SbosticIn an attempt to speed up the Fortran 77
2*43126Sbosticcompiler, we have provided a new interface between
3*43126Sbosticthe fortran compiler and the portable C compiler.
4*43126SbosticThe intermediate file is binary, and the result is
5*43126Sbosticto speed up the execution of Fortran considerably.
6*43126SbosticThe changes necessary to make this work are as follows:
7*43126Sbostic
8*43126Sbostic***	The ONEPASS flag should be off for Fortran;
9*43126Sbostic	the simplest way of making this happen is to take
10*43126Sbostic	the line # define ONEPASS on macdefs, and put a
11*43126Sbostic	# ifndef FORT ... # endif around it.
12*43126Sbostic
13*43126Sbostic***	The function label from pass 1 must be put in
14*43126Sbostic	a file, fort.h.  Also,  a simple function, tlabel,
15*43126Sbostic	must be written to copy names and make labels.
16*43126Sbostic
17*43126Sbostic***	The function `where' must be defined, as well as the
18*43126Sbostic	function main (which was once on local2.c).
19*43126Sbostic	They can be defined on fort.h, or on local2.c
20*43126Sbostic	(surrounded by # ifnded ONEPASS and # endif)
21*43126Sbostic
22*43126Sbostic***	Other things from pass one may have crept into the pass 2
23*43126Sbostic	code: they must be also done, either on fort.h or
24*43126Sbostic	on local2.c surrounded by ifdefs.
25*43126Sbostic
26*43126Sbostic***	make fort  then creates the fortran interface...
27*43126Sbostic
28