Gamma programs can be run in two ways: as a stand-alone executable, or by invoking Gamma from the command line.
For stand-alone executable program, the user simply types the name of the executable, possibly with command line arguments. The program invokes the Gamma engine through the shell !# directive (as explained in Executable Programs in the Getting Started chapter of this Guide.
In the case where there is no Gamma engine "embedded" into the program, the command gamma is available to run the executable. This command has several options, a few of which we mention here, and the rest of which are given in the gamma entry in the Reference.
-h gives a help message displaying all the options for this command.
-C declares all Gamma constants at startup. These constants can be viewed using the apropos function.
-d saves debugging information: the file name and line number.
-F declares all Gamma functions at startup. As with the -C option, these functions can be viewed using the apropos function.
The next section discusses command line arguments for a program, and how to access them within the program.
Copyright © 1995-2010 by Cogent Real-Time Systems, Inc. All rights reserved.