Mail Archives: djgpp-workers/1996/08/12/06:13:13
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 -