On Thursday 28 August 2003 12:19, Dan Nagle wrote:
> Hello,
>
> The "usual" difference between cpp and fpp is that fpp has been
> taught that // is an operator, not a comment initiator, and perhaps
> to wrap lines at an appropriate length. Note that fpp is not
> a standard product, so there's no definitive answer. What a
> particular vendor decided to do to cpp to make it "Fortran Friendly"
> is up to the vendor. I've seen cases where fpp is a link to cpp.
'g77 -E $*.F' is the same as 'gcc -E -traditional -x c $*.F' Either of those
invoke a gnu program named tradcpp, a pre-C99 version of cpp.
The -traditional flag prevents // from being seen as a comment operator.
fpp ought to deal with additional potential issues. Dan points out rightly
that fpp is vendor dependent, and a given vendor's standards vary without
much predictability. Certain vendors' fpp incorporate OpenMP translation in
accordance with the corresponding OpenMP library. Thus, it is likely to be
necessary to employ an open source pre-processor, followed by the proprietary
fpp.
>
> There're several Fortran specific preprocessors on the net,
> see Michel Olagnon's f90ppr at
> http://www.ifremer.fr//ditigo/molagnon/fortran90/contenu.html
> or my coco at
> http://users.erols.com/dnagle
>
> HTH
--
Tim Prince
|