[UP]


Manual Reference Pages  - compiler_version (3)

NAME

compiler_version(3f) - [FORTRAN:INTRINSIC] Compiler version string

CONTENTS

Syntax
Description
Arguments
Return Value
Example
Standard
Class
See Also

SYNTAX

str = compiler_version()

DESCRIPTION

compiler_version returns a string with the name and the version of the compiler.

ARGUMENTS

None.

RETURN VALUE

The return value is a default-kind string with system-dependent length. It contains the name of the compiler and its version number.

EXAMPLE

Sample program:

   program demo_compiler_version
   use iso_fortran_env
   implicit none
   print ’(4a)’, &
      ’This file was compiled by ’, &
      compiler_version(),           &
      ’ using the options ’,        &
      compiler_options()
   end program demo_compiler_version

Example results:

   This file was compiled by GCC version 5.4.0 using the options
   -I /usr/include/w32api -I /home/urbanjs/V600/lib/CYGWIN64_GFORTRAN
   -mtune=generic -march=x86-64 -g -Wunused -Wuninitialized -Wall
   -std=f2008 -fbounds-check -fbacktrace -finit-real=nan
   -fno-range-check -frecord-marker=4
   -J /home/urbanjs/V600/lib/CYGWIN64_GFORTRAN

STANDARD

[[Fortran 2008]]

CLASS

Inquiry function of the module [[iso_fortran_env]]

SEE ALSO

[[compiler_options]], [[iso_fortran_env]]


compiler_version (3) March 18, 2019
Generated by manServer 1.08 from 95b01544-2d8a-41a3-8808-39cf5c39dc65 using man macros.