-qzerosize

Category

Language element control

Purpose

Determines whether checking for zero-sized character strings and arrays takes place in programs that might process such objects.

Syntax

Read syntax diagramSkip visual syntax diagram
>>- -q--+-nozerosize-+-----------------------------------------><
        '-zerosize---'   

@PROCESS:

@PROCESS ZEROSIZE | NOZEROSIZE

Defaults

The default setting depends on which command invokes the compiler:
  • -qzerosize for the f90, xlf90, xlf90_r, f95, xlf95, xlf95_r, f2003, xlf2003, xlf2003_r, f2008, xlf2008, and xlf2008_r commands
  • -qnozerosize for the xlf and xlf_r commands when they are used to compile the .f, .F, .f77, or .F77 files
  • -qnozerosize for the f77 and fort77 commands

Usage

Use -qzerosize for Fortran 90, Fortran 95, Fortran 2003, and Fortran 2008 programs that might process zero-sized character strings and arrays.

For FORTRAN 77 programs, where zero-sized objects are not allowed, or for Fortran 90 and Fortran 95 programs that do not use them, compiling with -qnozerosize can improve the performance of some array or character-string operations.

Runtime checking performed by the -C option takes slightly longer when -qzerosize is in effect.