#pragma priority (C++ only)

In IBM® XL C/C++ for AIX® 16.1.0 or earlier releases, #pragma priority specifies the priority level for the initialization of static objects.

IBM Open XL C/C++ for AIX 17.1.3 does not support #pragma priority. However, IBM Open XL C/C++ for AIX 17.1.3 supports the __attribute__((init_priority)) attribute that provides a similar function to #pragma priority, with which you can specify non-default priorities for static objects in source code. However, the value range of the priority level in __attribute__((init_priority)) is different from that of #pragma priority. As a result, there is no guarantee of relative ordering between the objects compiled with IBM Open XL C/C++ for AIX 17.1.3 and the objects compiled with IBM XL C/C++ for AIX 16.1.0 or earlier releases.

Related information