Re: [G2R] Re: Various releases ...



On Mon, 2002-05-13 at 14:50, Dan Winship wrote:
> > The ELF init/fini sections do library initialisation/cleanup in a clean
> > way without using atexit().
> 
> But GNOME runs on non-ELF platforms.
> 
> -- Dan

Hi Dan,

Which ones? Are the BSDs non-elf?

The nice thing about using the GCC __attibute__ method of setting
finializers is that they work on any platform for which GCC's static
destructors work, which includes the ELF platforms and a load of non-ELF
ones as well.

Even if you don't use GCC (is GNOME ported to other compilers?), several
other projects, notably ACE+TAO, use finalizers successfully.

Cheers,
Alex.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]