I need to have a Fortran subroutine executed when my main program ends. Is there a Fortran runtime function for this or is the Linux atexit(3) function sufficient? Will the Fortran runtime still exist when the subroutine is called via atexit? I'm using compiler version 12 on RHEL 5.x, 64-bit for both.
For more complete information about compiler optimizations, see our Optimization Notice.