Use MAXMEM in conjunction with OPTIMIZE to limit the amount of memory used by the compiler for local tables of specific, memory-intensive optimizations to size KB. If that memory is insufficient for a particular optimization, the scope of the optimization is reduced.
Default is: MAXMEM(2048)
Abbreviations are: None
A value of -1 permits each optimization to take as much memory as it needs without checking for limits. Depending on the source file being compiled, the size of subprograms in the source, the machine configuration, and the workload on the system, this amount might exceed available system resources.
Usage notes
Depending on the source file being compiled, the size of the subprograms in the source, the machine configuration, and the workload on the system, setting the limit too high might lead to page-space exhaustion. In particular, specifying MAXMEM(-1) lets the compiler try to use an unlimited amount of storage, which in the worst case could exhaust the resources of the machine.
related references
OPTIMIZE