Specifies the priority level for the initialization of static objects.
See also #pragma priority and #pragma options.
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. |
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.
Compiler Command Line Options
#pragma options
#pragma priority