-qcompact

Description

When used with optimization, reduces code size where possible, at the expense of execution speed.

Syntax

Read syntax diagramSkip visual syntax diagram        .-nocompact-.
>>- -q--+-compact---+------------------------------------------><

See also #pragma options.

Notes

Code size is reduced by inhibiting optimizations that replicate or expand code inline, such as inlining or loop unrolling. Execution time may increase.

Example

To compile myprogram.C, instructing the compiler to reduce code size whenever possible, enter:

xlc++ myprogram.C -O -qcompact

Related information