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: g2news2.google.com!postnews.google.com!t54g2000hsg.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 tools? Date: Tue, 22 Jul 2008 17:59:25 -0700 (PDT) Organization: http://groups.google.com Message-ID: <6a8fff3d-f683-4185-8ed5-6cac81ff40ab@t54g2000hsg.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 1216774766 8462 127.0.0.1 (23 Jul 2008 00:59:26 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 23 Jul 2008 00:59:26 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: t54g2000hsg.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: g2news2.google.com comp.lang.ada:6996 Date: 2008-07-22T17:59:25-07:00 List-Id: On Jul 22, 8:15 pm, "Jeffrey R. Carter" wrote: > climber....@gmail.com wrote: > > > I would like to investigate on how ada's protected object and > > tasking features are implemented with C/pthread. Is it possible to use > > gcc(or other tools) to do the translation? > > What makes you think these features are implemented in C? > > gcc will not translate Ada to C. > > SofCheck has a compiler that uses ANSI C as its intermediate language, but I > suspect what you're interested in is part of their runtime code, not the code > produced by the compiler. > > -- > Jeff Carter > "It's symbolic of his struggle against reality." > Monty Python's Life of Brian > 78 yes, you are right. It is the Gnat runtime code that implements the concurrent features. But I first want to see what runtime calls is made for certain ADA constructs. When i try to read gcc source code, i got lost at the beginning.