Project

General

Profile

First wish for features to get implemented

Added by Luis Kornblueh over 11 years ago

Since a couple of weeks Fortran 2008 is released by ISO. One of the
features which I would love to use are the two inquiry functions given
below. I assume that the implementation is very simple.

13.8.2.6 COMPILER OPTIONS ( )

Description. Processor-dependent string describing the options that
controlled the program translation phase.

Class. Inquiry function.

Argument. None.

Result Characteristics. Default character scalar with processor-
dependent length.

Result Value. A processor-dependent value which describes the options
that controlled the translation phase of program execution.

Example. COMPILER OPTIONS ( ) might have the value '/OPTIMIZE /FLOAT=IEEE'.

13.8.2.7 COMPILER VERSION ( )

Description. Processor-dependent string identifying the program
translation phase.

Class. Inquiry function.

Argument. None.

Result Characteristics. Default character scalar with processor-
dependent length.

Result Value. A processor-dependent value that identifies the name and
version of the program translation phase of the processor.

Example. COMPILER VERSION ( ) might have the value 'Fast KL-10 Compiler
Version 7'.

NOTE 13.27

For both COMPILER OPTIONS and COMPILER VERSION the processor should
include relevant information that could be useful in solving problems
found long after the translation phase. For example, compiler release
and patch level, default compiler arguments, environment variable
values, and run time library requirements might be included. A processor
might include this information in an object automatically, without
the user needing to save the result of this function in a variable.