crtbegin.o crtend.o

Ian Lance Taylor iant@google.com
Tue Jul 10 16:52:00 GMT 2007


"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



More information about the Gcc mailing list