crtbegin.o crtend.o

Sunzir Deepur sunzird@gmail.com
Tue Jul 10 17:02:00 GMT 2007


On 10 Jul 2007 09:51:14 -0700, Ian Lance Taylor <iant@google.com> wrote:
> "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).

Thanks !!

>
> Ian
>



More information about the Gcc mailing list