(Solaris only) Produce listings and do global program checking (GPC) .
Use this option to find potential programming bugs. It invokes an extra compiler pass to check for consistency in subprogram call arguments, common blocks, and parameters, across the global program. The option also generates a line–numbered listing of the source code, including a cross reference table. The error messages issued by the -Xlist options are advisory warnings and do not prevent the program from being compiled and linked.
Example: Check across routines for consistency:
demo% f95 -Xlist fil.f
The above example writes the following to the output file fil.lst:
A line–numbered source listing (default)
Error messages (embedded in the listing) for inconsistencies across routines
A cross reference table of the identifiers (default)
By default, the listings are written to the file name.lst, where name is taken from the first listed source file on the command line.
A number of sub–options provide further flexibility in the selection of actions. These are specified by suffixes to the main -Xlist option, as shown in the following table
|
See the Fortran Programming Guide chapter “Program Analysis and Debugging” for details.
This option is not available on Linux systems.