Manfred Mudelsee <[log in to unmask]> wrote:
...
>(1) External/system calls
>The compiler should be able to call the operating system (to run the
>Gnuplot graphics program, visualizing the calculations) while running.
>Is that standard to F90/95, which compiler allows that? (Using F77, it
>was non-standard. E.g., with Microsoft's F77 compiler PowerStation, you
>used the runtime function RUNQQ('path/command'), with the EPCF77
>compiler you used CALL SYSTEM('path/command').
Making system calls is (obviously) system dependent and not
within the scope of a language definition. The C language
definition requires that a 'hosted environment' for C must
provide a system() library procedure. But, what that procedure
does is not defined within the C standard - the character
string argument is "executed by a command processor in
an implementation defined manner". There's just not a
whole lot a language standard can say about this.
Many Fortran implementations (particularly for UNIX systems)
give access to the same system() function they provide for C
implementations (through a wrapper, so the differences in the
character string data type internals can be adjusted). The
Fortran language standard does not require any particular
procedure or other interface for this capability though. The
documenation for the particular compiler you choose should
have a description of the proper procedure to call.
--
J. Giles
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|