The gfortran
command supports all the options supported by the gcc
command. Only options specific to GNU Fortran are documented here.
See GCC Command Options in Using the GNU Compiler Collection (GCC), for information on the non-Fortran-specific aspects of the gcc
command (and, therefore, the gfortran
command).
All GCC and GNU Fortran options are accepted both by gfortran
and by gcc
(as well as any other drivers built at the same time, such as g++
), since adding GNU Fortran to the GCC distribution enables acceptance of GNU Fortran options by all of the relevant drivers.
In some cases, options have positive and negative forms; the negative form of -ffoo would be -fno-foo. This manual documents only one of these two forms, whichever one is not the default.
• Option Summary: | Brief list of all gfortran options, without explanations. |
|
• Fortran Dialect Options: | Controlling the variant of Fortran language compiled. | |
• Preprocessing Options: | Enable and customize preprocessing. | |
• Error and Warning Options: | How picky should the compiler be? | |
• Debugging Options: | Symbol tables, measurements, and debugging dumps. | |
• Directory Options: | Where to find module files | |
• Link Options : | Influencing the linking step | |
• Runtime Options: | Influencing runtime behavior | |
• Code Gen Options: | Specifying conventions for function calls, data layout and register usage. | |
• Interoperability Options: | Options for interoperability with other languages. | |
• Environment Variables: | Environment variables that affect gfortran . |
Next: Runtime, Previous: Introduction, Up: Top [Contents][Index]
© Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
https://gcc.gnu.org/onlinedocs/gcc-10.2.0/gfortran/Invoking-GNU-Fortran.html