Aleksandar Donev wrote:
> Dick Hendrickson wrote:
>> the process of execution termination
>> shall include the effect of executing the C exit() function
>> (C International Standard 7.20.4.3)."
>> So, I'd say that executing a STOP does whatever an
>> end program statement does.
> OK, I guess the intention here is that (I assume this is already done)
> Fortran RTL cleanup operations (mostly files) be atexit callbacks
> registered by the compiler at startup. [...]
I would bet that most implementations don't use callbacks
to close files during termination at all. The I/O library is
part of the run-time library. The code that terminates the
program probably just looks up the open files in the I/O
library's internal tables and closes them.
--
J. Giles
|