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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,32cfbb718858528b X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-03 11:55:02 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail From: Ingo Marks Newsgroups: comp.lang.ada Subject: Re: Commercial C To Ada 95 compiler Date: Mon, 03 Jun 2002 20:52:48 +0200 Organization: T-Online Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.t-online.com 1023130327 06 14297 LWm6bAfbSHYpDc 020603 18:52:07 X-Complaints-To: abuse@t-online.com X-Sender: 340020534592-0001@t-dialin.net User-Agent: KNode/0.6.1 Xref: archiver1.google.com comp.lang.ada:25272 Date: 2002-06-03T20:52:48+02:00 List-Id: Henrik Quintel wrote: > does someone knows an ANSI C to Ada 95 compiler (commercial)? > The compiler has to translate C header and C body files. Wouldn't it be easier to link compiled C code into Ada 95? Example: C: int c_test (char *s) { return strlen(s); } Ada: with Interfaces.C; use Interfaces.C; with Interfaces.C.Strings; use Interfaces.C.Strings; function test (s : Chars_Ptr) return Integer; pragma Import(C,test,"c_test"); Regards