comp.lang.ada
 help / color / mirror / Atom feed
From: "Marc A. Criley" <mcqada95@earthlink.net>
Subject: Re: Pragma Export and initialized variables
Date: Fri, 25 Jan 2002 12:47:17 GMT
Date: 2002-01-25T12:47:17+00:00	[thread overview]
Message-ID: <3C51465E.1964CB81@earthlink.net> (raw)
In-Reply-To: 5ee5b646.0201241908.810e556@posting.google.com

Robert Dewar wrote:
> 
> Actually we find in the GNAT world that having only one
> such set of entry points is inadequate, and the latest
> version of GNAT has a special switch for gnatbind, -L
> that can override the standard adainit/adafinal names.
> This allows different Ada subsystems or libraries to
> be separately initialized and finalized as required at
> the time required.

This is a good thing.  A few years ago I had to compile a bunch of
source code into a shared library, and we were using GNAT to do this. 
So as not to interfere with the calling program's own adainit and
adafinal functions, I had GNAT generate and retain the source code for
those functions, manually renamed them, then compiled them into the
library.  Glad to see that this situation has been recognized, and can
be handled more cleanly.

Marc A. Criley
Consultant
Quadrus Corporation
www.quadruscorp.com



  reply	other threads:[~2002-01-25 12:47 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-23 10:15 Pragma Export and initialized variables Sandro Binetti
2002-01-23 22:04 ` Robert A Duff
2002-01-24  8:50   ` Sandro Binetti
2002-01-24 18:14     ` Stephen Leake
2002-01-24 19:29       ` Pascal Obry
2002-01-24 22:38         ` Larry Kilgallen
2002-01-25  3:08           ` Robert Dewar
2002-01-25 12:47             ` Marc A. Criley [this message]
2002-01-25 13:03             ` Larry Kilgallen
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox