Re: what happens before main()?
Kyle Sluder <[email protected]> Tue, 27 Apr 2010 09:40:27 -0700
| Newsgroups | gmane.comp.macosx.devel |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Apr 27, 2010 at 9:38 AM, Ivan Ostres <[email protected]> wrote: > So things like __cxa_vec_ctor for global objects and __cxa_guard for all > statics are actually called by dyld? (I always thought it was done by crt). > But that shouldn't be a huge performance impact unless there is a big number > of unmapped libraries needed by application and/or huge number of global > objects or classes with static members. In latter case it's a design issue, > right? C++ static constructors and functions with the constructor attribute are in fact run by dyld. > BTW, dyld is not open sourced, I guess? http://www.opensource.apple.com/source/dyld/dyld-132.13/ --Kyle Sluder