maxmem

Applies to C Applies to C++

Purpose

Limits the amount of memory used by the optimizer for local tables of specific, memory-intensive optimizations. The memory size limit is specified in kilobytes.

Syntax


Syntax Diagram

Defaults

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 -qmaxmem=-1 allows the compiler to try and use an infinite amount of storage, which in the worst case can exhaust the resources of even the most well-equipped machine.

Example

To compile myprogram.C so that the memory specified for local table is 16384 kilobytes, enter:

xlc++ myprogram.C -qmaxmem=16384

Related References

Compiler Command Line Options IBM Copyright 2003