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


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




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