Interview Questions

Compiler Options

This chapter describes options that affect source programs both during compilation and at run time. Execute these options using

  • OPTIONS statement—specified in the source code as the first statement of a program unit
  • In-line options—individual statements embedded in the source code
  • $INCLUDE statement—includes Fortran source statements from an external library into a program
OPTIONS Statement

The OPTIONS statement has the following syntax:

OPTIONS option[ option...]

where option can be any of the following:

/I4 /NOI4 /F77 /NOF77 /CHECK=BOUNDS /CHECK=NOBOUNDS
/EXTEND_SOURCE /NOEXTEND_SOURCE

These options perform the same function as the like-named command line options. Specifying option overrides a command line option when they are the same. option must always be preceded by a slash (/).

Use the following rules when specifying an OPTIONS statement:

  • The statement must be the first statement in a program unit and must precede the PROGRAM, SUBROUTINE, FUNCTION, and BLOCK DATA statements.
  • option remains in effect only for the duration of the program unit in which it is defined.

Pragna Meter
e-University Search
Related Jobs