Download PGI User's Guide

Transcript
Generic PGI Compiler Options
In the following example, the library directory /lib is searched for the library file libx.a and both the
directories /lib and /libz are searched for liby.a.
$ pgf95 -L/lib -lx -L/libz
-ly
myprog.f
-l<library>
Loads a library. The linker searches <library> in addition to the standard libraries. Libraries specified
with –l are searched in order of appearance and before the standard libraries.
Syntax:
-llibrary
Where library is the name of the library to search. The compiler prepends the characters lib to the
library name and adds the .a extension following the library name.
Usage: In the following example, if the standard library directory is /lib the linker loads the library /
lib/libmylib.a, in addition to the standard libraries.
$ pgf95 myprog.f -lmylib
-M<pgflag>
Selects options for code generation. The options are divided into the following categories:
Code generation
Environment
Inlining
Fortran Language Controls
C/C++ Language Controls
Optimization
Miscellaneous
The following table lists and briefly describes the options alphabetically and includes a field showing
the category.
65