When used with optimization, reduces code size where possible, at the expense of execution speed.
.-nocompact-. >>- -q--+-compact---+------------------------------------------><
See also #pragma options.
Code size is reduced by inhibiting optimizations that replicate or expand code inline, such as inlining or loop unrolling. Execution time may increase.
To compile myprogram.C to reduce code size, enter:
xlc++ myprogram.C -O -qcompact