compact

Applies to C Applies to C++

Purpose

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

Syntax

        .-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 to reduce code size, enter:

xlc++ myprogram.C -O -qcompact

Related References

Compiler Command Line Options
#pragma options IBM Copyright 2003