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* and Mac OS*) or /module:path (Windows*)
option
(for all module files)
- The directory specified by using the -Idir ((Linux and Mac OS) or /Idir (Windows)
option (for module files referenced in USE statements and include files
referenced in INCLUDE statements. )
- For Windows systems, 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.
Note
On operating systems that support characters in Unicode*
(multi-byte) format, the compiler will process file names containing Unicode*
characters.