FORTRAN Reference Manual

Compiler Directives
FORTRAN Reference Manual528615-001
10-48
LOGICAL Compiler Directive
LOGICAL Compiler Directive
The LOGICAL directive specifies the size (in bytes) of all subsequent entities in the
source file that are declared as type logical.
Considerations
You cannot include more than one LOGICAL directive in your source program.
Specify the LOGICAL directive either with the FORTRAN command (after the
semicolon following the object file name) or in the source input file before the first
FORTRAN statement.
If you omit this directive, all logical entities are LOGICAL*2.
Use the LOGICAL*4 directive, along with the INTEGER*4 directive, for programs
that rely on storage allocation conforming to the ANSI standard’s requirement that
all integer, logical, and real variables occupy the same amount of storage space.
Example
?LOGICAL*4
LOWBUFFER Compiler Directive
The LOWBUFFER directive controls space allocated for the run-time buffer pool in
lower data memory.
size
is a number in the range 0 through 16383 that specifies the number of words to
allocate.
Considerations
The LOWBUFFER directive is meaningful only if ENV OLD is in effect. If you
specify ENV COMMON, the LOWBUFFER directive has no effect on space
allocation for your program.
If you do not include the LOWBUFFER directive in your source file, the compiler
allocates 512 words.
LOWBUFFER size
INTEGER*2
INTEGER*4


