We use C++ static initialization order to control the construction of several objects in a C++ library. GCC offers init_priority
, and Microsoft offers init_seg()
.
I'm looking for similar with IBM's XL C/C++ compiler, but my search results are not revealing useful hits. The compiler runs on both Linux and AIX. Obviously Linux offers the feature, but I am not sure about AIX runtime support.
My first question is, does the AIX platform support initialization priorities?
My second question is, does IBM's XL C/C++ offer a way to control it via the source code?