-qlargepage

Category

Optimization and tuning

Pragma equivalent

None.

Purpose

Takes advantage of large pages provided on POWER4 and higher systems, for applications designed to execute in a large page memory environment.

When -qlargepage is in effect to compile a program designed for a large page environment, an increase in performance can occur.

Syntax

Read syntax diagramSkip visual syntax diagram
        .-nolargepage-.   
>>- -q--+-largepage---+----------------------------------------><

Defaults

-qnolargepage

Usage

Note that this option is only useful in the following conditions:
  • Large pages must be available and configured on the system.
  • You must compile with an option that enables loop optimization, such as -O3 or -qhot.
  • You must link with the -blpdata option.

See your AIX® operating system documentation for more information on using large page support.

Predefined macros

None.

Examples

To compile myprogram.c to use large page heaps, enter:
xlc myprogram.c -qlargepage -blpdata