Lawrence D'Oliveiro
2024-02-26 00:21:01 UTC
Here’s another bit of terminology the Fortran spec seemed to feel the need
to invent for itself: talking about “images” to refer to running instances
of a program. I figured this either meant “thread” or “process”, but a
clue appears in the 2018 spec, section 11.4, “STOP and ERROR STOP
statements”:
When an image is terminated by a STOP or ERROR STOP statement, its
stop code, if any, is made available in a processor-dependent
manner. If the stop-code is an integer, it is recommended that the
value be used as the process exit status, if the processor
supports that concept.
So an image “terminates”, and returns a process “exit status”; this must
mean that an “image” is equivalent to a “process”.
to invent for itself: talking about “images” to refer to running instances
of a program. I figured this either meant “thread” or “process”, but a
clue appears in the 2018 spec, section 11.4, “STOP and ERROR STOP
statements”:
When an image is terminated by a STOP or ERROR STOP statement, its
stop code, if any, is made available in a processor-dependent
manner. If the stop-code is an integer, it is recommended that the
value be used as the process exit status, if the processor
supports that concept.
So an image “terminates”, and returns a process “exit status”; this must
mean that an “image” is equivalent to a “process”.