why has Cray dropped CPP support from cf77?
Patrick F. McGehearty
patrick at convex.COM
Tue Feb 19 01:51:16 AEST 1991
In article <1298 at red8.qtp.ufl.edu> bernhold at qtp.ufl.edu (David E. Bernholdt) writes:
>
>The latest release of cf77 no longer supports automaticly running .F
>files through CPP before compiling them. This move seems to be a step
>backward from the what I think is a _very_ useful feature common to
>_many_ unix-based fortran implementations. Does anyone know why they
>did it?
I know nothing about Cray's support decisions, but I do know that
while using cpp works as a preprocessor for many programs, it also
has weaknesses since the tokenizing rules for fortran and C are so
different. For example, any token (string, identifier, whatever) that is
spread over a continuation line is not recognized by CPP. Similarly, any
token with embedded spaces is not recognized by CPP. Comment lines
in the middle of continuation lines can cause strange behavior.
A blanket decision to run CPP over large "dusty-deck" unstructured Fortran
programs can reach up and bite you without giving any indication of what
happened. Use with caution!
More information about the Comp.unix.cray
mailing list