Changes between Version 9 and Version 10 of doc/app/recommended_compiler_options


Ignore:
Timestamp:
Jun 5, 2025 6:35:00 AM (3 days ago)
Author:
raasch
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • doc/app/recommended_compiler_options

    v9 v10  
    7676== '''GNU Fortran:'''
    7777
    78 {{{gfortran -Ofast}}}
     78{{{gfortran -Ofast -g -ffpe-trap=invalid,zero,overflow -fbacktrace}}}
    7979
    8080||='''Option''' =||='''meaning''' =||
    8181|-----------
    8282||-Ofast          ||Disregard strict standards compliance. -Ofast enables all -O3 optimizations. It also enables optimizations that are not valid for all standard-compliant programs. It turns on -ffast-math and the Fortran-specific -fstack-arrays, unless -fmax-stack-var-size is specified, and -fno-protect-parens.  ||
     83||-g           ||Produce debugging information in the operating system's native format. ||
     84||-ffpe-trap=  ||Specifies a list of IEEE exceptions when a Floating Point Execption (FPE) should be raised. ''invalid'': invalid floating point operation, such as SQRT(-1.0), ''zero'': division by zero, ''overflow'': overflow in a floating point operation. ||
     85||-fbacktrace  ||Specify that, when a runtime error is encountered or a deadly signal is emitted (segmentation fault, illegal instruction, bus error or floating-point exception), the Fortran runtime library should output a backtrace of the error.  ||
    8386
    8487\\