From: Pascal Obry <pascal@obry.net>
Subject: Re: Interfacing Ada with Ada
Date: Wed, 02 Dec 2009 18:40:52 +0100
Date: 2009-12-02T18:40:38+01:00 [thread overview]
Message-ID: <4b16a696$0$973$ba4acef3@news.orange.fr> (raw)
In-Reply-To: <h646fh.0q2.ln@hunter.axlog.fr>
Le 02/12/2009 17:21, Jean-Pierre Rosen a �crit :
> Simple answer: no. The ali file contains the version of the compiler
> that was used, and the binder will refuse a unit from a different version.
Hum... For "simple" code not using the Ada runtime, won't it work to
consider this old Ada code as it was some external C code:
0. Remove all .ali files coming from 3.14 compiler. Move away
specs too.
1. Create interface specs for say "old.o" object code:
procedure Foo (P : in Integer);
pragma Import (Ada, Foo);
2. When linking add the old object file
$ gnatmake xyz -largs old.o
If the old code uses the Ada runtime (tasks, controlled objects, ...)
this just won't work of course.
Pascal.
--
--|------------------------------------------------------
--| Pascal Obry Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--| http://www.obry.net - http://v2p.fr.eu.org
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver keys.gnupg.net --recv-key F949BD3B
next prev parent reply other threads:[~2009-12-02 17:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-02 14:54 Interfacing Ada with Ada dhenry
2009-12-02 16:21 ` Jean-Pierre Rosen
2009-12-02 17:40 ` Pascal Obry [this message]
2009-12-02 22:15 ` sjw
2009-12-03 7:48 ` dhenry
2009-12-03 20:03 ` Pascal Obry
2009-12-05 10:22 ` Florian Weimer
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox