Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [photran-dev] Question on support for Intel Fortran source filetypes

For the additional source file types, would you folks like to add them
yourselves or would you like me to work on a patch and send it to you?

The preprocessor isn't really documented in detail anywhere.  It
basically follows what cpp does, but not everything.  If there are
specific details you have questions on, I'd be happy to try and chase
down some answers for you with the folks who develop and maintain fpp.

Thanks,

Bill

All of our product manuals can be found online here:

http://www.intel.com/cd/software/products/asmona/eng/compilers/flin/2198
39.htm

The only info about the preprocessor is a brief user level description
in the first document, "Intel Fortran Compiler Documentation".
See Building Applications > Getting Started > Preprocess Phase, and
Building Applications > Building Applications > Predefined Preprocessor
Symbols.

There is some brief help on fpp options from 'fpp -help':

> fpp -help 
 
usage: fpp [options] [input_file [output_file]]
Options:
-B                  Do not recognize C++ style comments.
-C                  Do not recognize C style comments.
-D<macro>           Define a <macro> with string '1' as its value.
-D<macro>=<val>     Define a <macro> with <val> as its value.
-I<dir>             Add <dir> to the end of the main include paths.
-M                  Generate make dependencies.
-P                  Do not generate #line directives.
-V                  Display the version number.
-U<macro>           Undefine <macro>.
-Xw                 For fixed form source files fpp assumes that the
                    symbol ' ' is insignificant.
-Xu                 Convert upper-case letters to lower-case, except
                    withing character-string constants.
-Y<dir>             Add <dir> to the end of the system include paths
-c_com=<yes|no>     Recognize or not C style comments. Default value -
                    c_com=yes.
-e                  For fixed form source files accept extended source
                    lines, up to 132 characters long.
-e80                For fixed form source files accept extended source
                    lines, up to 80 characters long.
-f_com=<yes|no>     If value is 'yes', Fortran style end-of-line
comments
                    are recognized by fpp on preprocessor lines and will
be
                    ignored by fpp. Default value -f_com=yes.
-free               Assume free format input source.
-fixed              Assume fixed format input source.
-f77                Assume Fortran 77 language input source.
-f90                Assume Fortran 90 language input source.
-m                  Macros are expanded anywhere in source file.
-macro=yes          Macros are expanded anywhere in source file.
-macro=no_com       Turn off macro expansion in comments.
-macro=no           Turn off macro expansion all together.
-noB                Recognize C++ style comments.
-noC                Recognize C style comments.
-noJ                Recognize F90 style comments in #define line .
-w[0]               Do not output warnings to stderr.
-undef              Do not predefine any macros.
-help               Display this information.


-----Original Message-----
From: photran-dev-bounces@xxxxxxxxxxx
[mailto:photran-dev-bounces@xxxxxxxxxxx] On Behalf Of Ralph Johnson
Sent: Thursday, February 02, 2006 6:54 PM
To: photran-dev@xxxxxxxxxxx
Subject: Re: [photran-dev] Question on support for Intel Fortran source
filetypes

I think it is easy to add new file types.  A more interesting
issue is your preprocessor.  Our parser has problems with the
C preprocessor, and probably will have trouble with it, too.
Is there any documentation for it that we could see?

-Ralph Johnson
_______________________________________________
photran-dev mailing list
photran-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/photran-dev


Back to the top