comp.lang.ada
 help / color / mirror / Atom feed
From: geert@fozzie.sun3.iaf.nl (Geert Bosch)
Subject: Re: Dynamic linking using Gnat Ada
Date: 1996/09/07
Date: 1996-09-07T00:00:00+00:00	[thread overview]
Message-ID: <50s54q$sq7@fozzie.sun3.iaf.nl> (raw)
In-Reply-To: vmk9u9f55f.fsf@emw.ericsson.se


Martin Lorentzon (emwson@emw.ericsson.se) wrote:
`` I'd like to dynamically link an Ada program using Gnat Ada.
   Is it possible? Any hints on how to? ''

It is possible. In general you can proceed the same way you would do
dynamic linking with gcc C/C++. Just remember that you have to call
an initialization function before accessing Ada stuff from another
language. After you're finished using the Ada objects you'll have to
call the finalization function.

If you want to link the run-time library dynamically, that's more
difficult. Since GNAT has no documentation on the interface between
the application code and the run-time library, building a dynamically
linked version of the RTL is much harder. I do have one for OS/2, but
it might change with each version of GNAT and that is the reason I don't
want to distribute it.

Regards,
   Geert
-- 
E-Mail: geert@sun3.iaf.nl    
      ``I think there is a world market for maybe five computers.''
        Thomas Watson,  chairman of IBM, 1943





  parent reply	other threads:[~1996-09-07  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-09-05  0:00 Dynamic linking using Gnat Ada Martin Lorentzon
1996-09-05  0:00 ` John Howard
1996-09-06  0:00 ` Samuel Tardieu
1996-09-06  0:00 ` David C. Hoos, Sr.
1996-09-07  0:00 ` Geert Bosch [this message]
1996-09-07  0:00 ` Jon S Anthony
replies disabled

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