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.


Read syntax diagramSkip visual syntax diagram>>- -q--maxmem--=--size----------------------------------------><



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.


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

xlc++ myprogram.C -qmaxmem=16384

Related information