[UP]


Manual Reference Pages  - compiler_options (3)

NAME

compiler_options(3f) - [FORTRAN:INTRINSIC] Options passed to the compiler

CONTENTS

Syntax
Description
Arguments
Return Value
Example
Standard
Class
See Also

SYNTAX

str = compiler_options()

DESCRIPTION

compiler_options returns a string with the options used for compiling.

ARGUMENTS

None.

RETURN VALUE

The return value is a default-kind string with system-dependent length. It contains the compiler flags used to compile the file, which called the compiler_options intrinsic.

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_version]], [[iso_fortran_env]]


compiler_options (3) March 18, 2019
Generated by manServer 1.08 from 8a5136df-085e-4c92-b47b-814fa13c2277 using man macros.