Running a Program



next up previous contents index
Next: The Fortran M Up: A First Example Previous: Compiling and Linking

Running a Program

   

A Fortran M program is executed in the same way as other programs. For example, to run example1, you would type the following, where % is the Unix shell prompt:

==

=1.03

In this and subsequent examples of running programs, text typed by the user is written in italic, program output in roman, and the shell prompt is %.

The Fortran M run-time system  has a number of run-time configurable parameters that can be controlled by command line arguments . In order to keep these run-time system arguments from interfering with the program's arguments, all arguments up to but not including the first -fm  argument are passed to the program. All arguments after the -fm argument are passed to the run-time system. For example, suppose you run a Fortran M program as follows: my_program my_arg1 my_arg2 -fm -nodes dalek

This causes my_arg1 and my_arg2 to be passed to the Fortran M program, and -nodes  and dalek to the run-time system.

Run-time system parameters are discussed in more detail in §4.2. In addition, a complete list of these run-time system parameters, and a brief description of their meaning, can be obtained by using the -h argument, for example: my_program -fm -h



Steve Tuecke
Tue Aug 30 12:20:34 CDT 1994