delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1996/08/12/06:13:13

Date: Mon, 12 Aug 1996 13:06:46 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Robert Hoehne <robert DOT hoehne AT mathematik DOT tu-chemnitz DOT de>
Cc: DJ Delorie <dj AT delorie DOT com>, djgpp-workers AT delorie DOT com
Subject: Re: Startup customization
In-Reply-To: <Pine.HPP.3.91.960812114451.22744D-100000@newton.mathematik.tu-chemnitz.de>
Message-Id: <Pine.SUN.3.91.960812130403.27060G-100000@is>
Mime-Version: 1.0

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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019