Most, if not all, unix Fortran processors have an option to run cpp or
it's Fortran related relative, fpp*. fpp source is available from
netlib. cpp sources are available from various places.
The netlib version may not be as up to date as it might be, I will
forward any gripes about the topic to folks who work on the project.
There is, of course, the ISO standard approach detailed in part 3 of
the Standard. Aside from source code distributions, I'm aware of no
commerical compilers which include it as part of their products
themselves. cpp is effectively a de facto standard, while "coco" is a
de jure standard only.
*
fpp is cpp but with some Fortran related smarts to minimize the ways
one can accidentally use the preprocessor to generate illegal
Fortran code ;>
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|