Are you perhaps looking for the compiler_version() and compiler_options() functions? I use them like this, they were defined in Fortran 2008 if I am not mistaken:
WRITE( lurep, '(a)' ) 'Report of simulation' WRITE( lurep, '(a)' ) '--------------------' WRITE( lurep, '(a)' ) 'Compiler version: ', compiler_version() WRITE( lurep, '(a)' ) 'Compiler options: ', compiler_options() Regards, Arjen Op wo 1 jun. 2022 om 10:42 schreef Kay Diederichs < kay.diederi...@uni-konstanz.de>: > Hi, > > is there any gfortran option and/or version information available from/in > a binary? Maybe accessible with objdump or strings? > > For ifort, we use the -sox option ("This option tells the compiler to save > the compilation options and version number in the executable file. ..."). > This enables e.g. > strings /path/to/binary | grep Intel > > Or is there a gfortran option that makes this accessible in a binary? > > Thanks, > Kay > > >