FORTRAN Reference Manual

Compiler Directives
FORTRAN Reference Manual528615-001
10-27
FMAP Compiler Directive
FMAP Compiler Directive
The FMAP directive causes the compiler to include a file map in the compiler listing
just before the Binder load map. The file map consists of one line for each source input
file used during the compilation, showing the file ordinal, the file’s fully qualified name,
and the date and time the file was last modified.
The default is NOFMAP.
Considerations
The FMAP directive must appear on the FORTRAN command line following the
semicolon after the object file name, or in the source input file before the first
FORTRAN source statement. If you specify the FMAP directive after the first
FORTRAN statement, the compiler issues an error message and ignores it.
If you specify two or more properly placed FMAP directives, the compiler uses the
first one and issues a warning message for each of the others.
The effect of the FMAP directive is suspended, but not cancelled, by the NOLIST
and SUPPRESS directives.
The file map is most useful when you use DEFINEs for source input file names,
because the file map identifies the files that the compiler actually read. Even if you
do not use DEFINEs, the file map provides a list of all the source files used in the
compilation. Knowing which source files were used can be helpful when you want
to be certain you included all the source files necessary to compile the program.
FMAP can also be useful if you want to know exactly which versions of the source
files FORTRAN used for a particular compilation of a program.
Example
?FMAP
[NO]FMAP