#pragma options [no]compact
Avoids optimizations that increase code size.
-qnocompact
Code size is typically reduced by inhibiting optimizations that replicate or expand code inline, such as inlining or loop unrolling. Execution time might increase.
This option takes effect only when it is specified at the -O2 optimization level, or higher.
__OPTIMIZE_SIZE__ is predefined to 1 when -qcompact and an optimization level are in effect. Otherwise, it is undefined.
To compile myprogram.c, instructing the compiler to reduce code size whenever possible, enter:
xlc myprogram.c -O -qcompact