Re: Exit code with Fortran 90
- From: Walter Spector <w6ws_xthisoutx@xxxxxxxxxxxxx>
- Date: Wed, 30 Jan 2008 06:48:17 -0800
Andrea Francia wrote:
If I use the istruction
stop n
where n is a integer I found that the program terminate with n as exit code.
I see that this happen compiling when I use the GNU Fortran compiler (gfortran).
Is this behaviour standard, or it is a special behaviour of gfortran?
As Dan says, it is not required by the Fortran Standard per se.
However the POSIX Fortran Binding (1003.9-1992) does specify this
behavior (for small integer values.) As desirable as the feature
is, some compilers do it and some don't.
W.
.
- Follow-Ups:
- Re: Exit code with Fortran 90
- From: John Harper
- Re: Exit code with Fortran 90
- References:
- Exit code with Fortran 90
- From: Andrea Francia
- Exit code with Fortran 90
- Prev by Date: Re: Exit code with Fortran 90
- Next by Date: Allocatable Arrays As Outputs
- Previous by thread: Re: Exit code with Fortran 90
- Next by thread: Re: Exit code with Fortran 90
- Index(es):
Relevant Pages
|