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: 103376,11414a19b0e4a97a X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder2.cambriumusenet.nl!feed.tweaknews.nl!193.201.147.71.MISMATCH!xlned.com!feeder3.xlned.com!feeder.news-service.com!cyclone02.ams2.highwinds-media.com!news.highwinds-media.com!npeersf01.ams.highwinds-media.com!newsfe15.ams2.POSTED!7564ea0f!not-for-mail From: Per Sandberg User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.10) Gecko/20100621 Fedora/3.0.5-1.fc13 Thunderbird/3.0.5 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Advice on selling Ada to a C shop References: <101bf8f3-b823-45ee-9afd-40cbafb4b7a9@t26g2000prt.googlegroups.com> <4c1e0d26$0$2393$4d3efbfe@news.sover.net> <82d3va2psl.fsf@stephe-leake.org> In-Reply-To: <82d3va2psl.fsf@stephe-leake.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Date: Thu, 01 Jul 2010 21:09:47 UTC Date: Thu, 01 Jul 2010 23:09:46 +0200 Xref: g2news1.google.com comp.lang.ada:12109 Date: 2010-07-01T23:09:46+02:00 List-Id: I could not more then agree on that on Stephen's comment, I did a major binding to a C-library using -fdump-ada-spec where the library interface contained aprox 150 header files. Never the less I had to write a higher level interface as well to get the API:s in a more reasonable shape from an Ada perspective (there was other requirements as well that mandated the look and feel of the Ada API:s), but that was fairly simple and it was most boring. But to get that amount of validated functionality in a high level language for such a cheap price -:) -:) Of course the amount of work to do this depends on the design and structure of the underlying C API. /P On 06/29/2010 10:42 AM, Stephen Leake wrote: > Warren writes: > >> ... in a given company, where many >> similar projects are done, you may have large bodies >> of existing library code. It's a tough sell to say >> "rewrite _everything_ in Ada". > > Yes, that's a non-starter. > > Be sure to mention GNAT's -fdump-ada-spec, which generates Ada package > specs from C code. That makes it _much_ easier to import C correctly. >