Compiler option to detect unused subroutines?  Compiler option
to detect unused subroutines?   Does the current Intel Fortran
compiler have an option to detect unused subroutines and/or
functions?    16 帖子 / 0 new Annalee (Intel)的头像  Hello John,  The
Intel Fortran Compiler does not have an option to detect unused
subroutines or functions. I have filed a feature request for
this. The issue number is DPD200182251. I would not expect this
to be a high priorety feature request, but I will post any
updates I recieve to this thread.  Intel Developer Support   I
doubt that the compiler can do what is asked, because it does
not know when compiling a source file whether other objects and
libraries will be linked to the current object being produced.
The linker, on the other hand, can remove unneeded subroutines
and functions.  Typically, Linux and Unix linkers (ld) regard
each object (*.o file) as an indivisible unit rather than each
of the routines within the object.  TimP (Intel)的头像  Linkers can
detect object files