This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: order of constructors


Peter Barada wrote:
Is there any way to control the order of static constructors so that
some that access other functions are done after those functions
intializing fucntions are done?

The C++ front end supports an init_priority attribute. This is documented in the manual.


This was originally implemented for an embedded system, ECOS. It requires binutils support which does not exist for all targets. This feature may conflict with other C++ language features. Use at your own risk.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]