The options in this category allow you to specify the characteristics of the source code. You can also use these options to enforce or relax language restrictions and enable or disable language extensions.
Option name | @PROCESS directive | Description |
---|---|---|
-qinit | INIT(F90PTR) | Makes the initial association status of pointers disassociated. |
-qlanglvl | LANGLVL | Determines which language standard (or superset, or subset of a standard) to consult for nonconformance. It identifies nonconforming source code and also options that allow such nonconformances. |
-qmbcs | MBCS | Indicates to the compiler whether character literal constants, Hollerith constants, H edit descriptors, and character string edit descriptors can contain Multibyte Character Set (MBCS) or Unicode characters. |
-qnullterm | NULLTERM | Appends a null character to each character constant expression that is passed as a dummy argument, making it more convenient to pass strings to C functions. |
-1, -qonetrip | ONETRIP | Executes each DO loop in the compiled program at least once if its DO statement is executed, even if the iteration count is 0. This option provides compatibility with FORTRAN 66. |
-qposition | POSITION | Positions the file pointer at the end of the file when data is written after an OPEN statement with no POSITION= specifier and the corresponding STATUS= value (OLD or UNKNOWN) is specified. |
-qqcount | QCOUNT | Accepts the Q character-count edit descriptor (Q) as well as the extended-precision Q edit descriptor (Qw.d). |
-qsaa | SAA | Checks for conformance to the SAA FORTRAN language definition. It identifies nonconforming source code and also options that allow such nonconformances. |
-qsave | SAVE | Specifies the default storage class for local variables. |
-qsclk | None. | Specifies the resolution that the SYSTEM_CLOCK intrinsic procedure uses in a program. |
-u,-qundef | UNDEF | Specifies that no implicit typing of variable names is permitted. -qundef is the long form of the -u option. |
-qxlf77 | XLF77 | Provides compatibility with FORTRAN 77 aspects of language semantics and I/O data format that have changed. |
-qxlf90 | XLF90 | Provides compatibility with the Fortran 90 standard for certain aspects of the Fortran language. |
-qxlf2003 | XLF2003 | Provides the ability to use language features specific to the Fortran 2003 standard when compiling with compiler invocations that conform to earlier Fortran standards, as well as the ability to disable these features when compiling with compiler invocations that conform to the Fortran 2003 standard. |
-qxlf2008 | XLF2008 | Provides the ability to use language features specific to the Fortran 2008 standard when compiling with compiler invocations that conform to earlier Fortran standards, as well as the ability to disable these features when compiling with compiler invocations that conform to the Fortran 2008 standard. |
-qzerosize | ZEROSIZE | Determines whether checking for zero-sized character strings and arrays takes place in programs that might process such objects. |