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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e552d8828cec1fc7 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!postnews.google.com!d45g2000hsc.googlegroups.com!not-for-mail From: climber.cui@gmail.com Newsgroups: comp.lang.ada Subject: Re: Is it possible to translate ada program to C using GCC or other Date: Tue, 22 Jul 2008 18:05:00 -0700 (PDT) Organization: http://groups.google.com Message-ID: <822c5e24-bd20-458d-8346-ba22994aa850@d45g2000hsc.googlegroups.com> References: <334c1c0a-0c49-49d3-b03b-867c2288159c@25g2000hsx.googlegroups.com> NNTP-Posting-Host: 24.141.70.141 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1216775101 12909 127.0.0.1 (23 Jul 2008 01:05:01 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 23 Jul 2008 01:05:01 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: d45g2000hsc.googlegroups.com; posting-host=24.141.70.141; posting-account=fnsQjAoAAACsmgRb2dWjnstJ3nliOcz6 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:1269 Date: 2008-07-22T18:05:00-07:00 List-Id: On Jul 22, 8:45 pm, a...@anon.org (anon) wrote: > No! > > In GNAT the compiler generates assembly code. With one exception that is > "GNATBIND" program. Using the "-C" option, GNATBIND with produce its > binder program in C. But that does very little for what most people want. > > A thesis, back in 1991 by Jeffrey Skinner, was in titled "Ada2C: An > ADA-To-C Program Translator" but it seams that today, most "Ada2C" > programs have more to do with homework assignments than actual working > programs. > Any chance to get ADA to be translated to something readable, like ADA code plus run-time calls to its runtime system and pthread library? By the way, how to use GNAT to compile ada program into assembly code? I use gcc with -S option, but did not get anything but an assembly program with no body. tony