Date: Mon, 12 Aug 1996 13:06:46 +0200 (IST) From: Eli Zaretskii To: Robert Hoehne Cc: DJ Delorie , djgpp-workers AT delorie DOT com Subject: Re: Startup customization In-Reply-To: Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Mon, 12 Aug 1996, Robert Hoehne wrote: > void dummy() __attribute__ ((constructor)); How is this different from the ctor mechanism? DJ? > it looks much betther than the actual implementation. For accessing > the arc and argv variables you can uses the __crt0_argc and __crt0_argv, > which are defined in 'crt1.c'. Thanks, I already figured this out. > The order of calling the functions > in the .ctor sections depends in my opinion on the order how they > are linked. Yes, I thought so too, and verified this by writing a small program with two ctors.