On 18 May 2012 13:21, Maxim Yegorushkin wrote: > I am reading http://gcc.gnu.org/onlinedocs/gcc-4.7.0/gcc/Function-Attributes.html#Function-Attributes > where it talks about constructor and destructor function attributes: > > The priorities for constructor and destructor functions are the > same as those specified for namespace-scope C++ objects. Hi Max, That text refers to the form of attribute taking an optional "priority" argument: void foo() __attribute__((constructor(101))); I believe it's saying the meaning of that argument and the range of valid values are the same as for the init_priority (priority) attribute that can be used on namespace-scope C++ objects, http://gcc.gnu.org/onlinedocs/gcc-4.7.0/gcc/C_002b_002b-Attributes.html