From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,7993782f4ec0bb4f X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news1.google.com!goblin2!goblin.stu.neva.ru!news.unit0.net!feeds.phibee-telecom.net!de-l.enfer-du-nord.net!gegeweb.org!news.wanadoo.fr!news.wanadoo.fr!not-for-mail Date: Wed, 02 Dec 2009 18:40:52 +0100 From: Pascal Obry Organization: Home - http://www.obry.net User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; fr-FR; rv:1.8.1.22) Gecko/20090605 Thunderbird/2.0.0.22 Mnenhy/0.7.5.0 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Interfacing Ada with Ada References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: <4b16a696$0$973$ba4acef3@news.orange.fr> NNTP-Posting-Date: 02 Dec 2009 18:40:38 CET NNTP-Posting-Host: 82.124.147.248 X-Trace: 1259775638 news.orange.fr 973 82.124.147.248:15654 X-Complaints-To: abuse@orange.fr Xref: g2news1.google.com comp.lang.ada:8289 Date: 2009-12-02T18:40:38+01:00 List-Id: 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