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: crtbegin.o crtend.o


"Sunzir Deepur" <sunzird@gmail.com> writes:

> What files are the sources of crtbegin.o and crtend.o ?

The single file gcc/crtstuff.c.

> What's their purposes ?

To ensure that global constructors and destructors are run at the
appropriate times (i.e., before main and after exit, respectively).

Ian


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