crtbegin.o crtend.o

Ian Lance Taylor
Tue Jul 10 16:52:00 GMT 2007

"Sunzir Deepur" <> 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).


More information about the Gcc mailing list