4.9 C*$* options

When you determine that a file must always be run with the same command switches, you can use the first line of the file to specify these switches. The format of this line is as follows:

C*$*options  -switch[=value]  [-switch[=value]]...

The C*$*options (or *$*options ) must appear in columns 1-11 (or 1-10) with a character space between this command and the options that follow, such as:

C*$*options   -lines=60   -optimize=4   -scalaropt=2

Only the first line may be used for C*$*options . Short or long switch names may be used on this line. The leading C , the keyword options, and the command-line switches can be uppercase or lowercase.

Switches of the form -switch=<name> (for example, -fortran or -inline ) cannot be specified on the C*$*options line of the source file. These switches can be specified on the command line only.

If conflicting switches are specified on the command line and on the C*$*options line, the C*$*options line takes precedence. If additional options are specified on the C*$*options line, these are used in addition to those specified on the command line. If the command switch -ignoreoptions is set, the C*$*options line in the program is treated as a comment.


Previous Page | Next Page | Contents | Index |
Command Line Switches