What the Compiler Does by Default
By default, the compiler driver generates executable file(s) of the
input file(s) and performs the following actions:
- Displays certain diagnostic messages,
warnings, and errors.
- Performs default settings and optimizations, unless
these options are overridden by specific options settings.
- Searches for source files in the current directory
or in the directory path explicitly specified before a file name (for
example, looks in "src" when the directory path is src\test.f90).
- Searches for include and module files in:
- The directory path explicitly specified before
a file name (for example, looks in "src" when the including
source is specified as src\test.f90)
- The current directory
- The directory specified by using the -module
path (Linux* OS and Mac OS* X) or /module:path (Windows* OS)
option (for all module files)
- The directory specified by using the -Idir ((Linux OS and Mac OS
X) or /Idir
(Windows OS) option (for module files referenced in USE statements and
include files referenced in INCLUDE statements. )
- For Windows OS, the include path specified by
the INCLUDE environment variable (for all include or module files)
- Any directory explicitly specified in any INCLUDE
within an included file
- Passes options designated for linking as well as
user-defined libraries to the linker. The
linker searches for any library files in directories specified by the
LIB variable, if they are not found in the current directory.
For unspecified options, the compiler uses default settings or takes
no action.
You may want to use the -assume
keyword (Linux
OS and Mac OS X) or /assume:keyword (Windows OS) option to instruct
the compiler to make certain assumptions. For example, -assume
buffered_io tells the compiler to accumulate records in a buffer.
For more information and the complete list of supported keywords, see
the assume option reference page.
Note
On operating systems that support characters in Unicode*
(multi-byte) format, the compiler will process file names containing Unicode*
characters.