Re: Exit code with Fortran 90
- From: "Craig Dedo" <cdedo@xxxxxxxxx>
- Date: Mon, 11 Feb 2008 17:36:59 -0600
"Andrea Francia" <afrancia@xxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:47b06672$0$4787$4fafbaef@xxxxxxxxxxxxxxxxxxxxxx
Andrea Francia wrote:If I use the istructionThanks everyone for the replies, now I know that this behaviour is not part of the Fortran 95 standard, but it is part of the 1003.9-1992 standard and may be not avaialable on each Fortran 95 implementation.
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?
Sending the stop code to the OS as an exit status is not now part of the Fortran standard.
However, Fortran 2008 will include an enhanced STOP statement. Two of the enhancements include displaying the stop code on ERROR_UNIT and using it as the process exit status, if the processor has such a concept. The details are in J3 paper 05-231r4.
--
Craig Dedo
17130 W. Burleigh Place
P. O. Box 423
Brookfield, WI 53008-0423
Voice: (262) 783-5869
Fax: (262) 783-5928
Mobile: (414) 412-5869
E-mail: <cdedo@xxxxxxxxx> or <craig@xxxxxxxxxx>
.
- Follow-Ups:
- Re: Exit code with Fortran 90
- From: Gary Scott
- Re: Exit code with Fortran 90
- References:
- Re: Exit code with Fortran 90
- From: Andrea Francia
- Re: Exit code with Fortran 90
- Prev by Date: Re: fortran and unit testing
- Next by Date: Re: need suggestions on Fortran editor in Linux
- Previous by thread: Re: Exit code with Fortran 90
- Next by thread: Re: Exit code with Fortran 90
- Index(es):
Relevant Pages
|