priority

Applies to C++

Purpose

Specifies the priority level for the initialization of static objects.

Syntax


Syntax Diagram

See also #pragma priority and #pragma options.

Notes


number Is the initialization priority level assigned to the static objects within a file, or the priority level of a shared or non-shared file or library.

You can specify a priority level from 101 (highest priority) to 65535 (lowest priority).

If not specified, the default priority level is 65535.

Example

To compile the file myprogram.C to produce an object file myprogram.o so that objects within that file have an initialization priority of 2000, enter:

 xlc++ myprogram.C -c -qpriority=2000

All objects in the resulting object file will be given an initialization priority of 2000, provided that the source file contains no #pragma priority(number) directives specifying a different priority level.

Related References

Compiler Command Line Options
#pragma options
#pragma priority IBM Copyright 2003