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=-2.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Thread: 103376,91d0d8cd28bbb477 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!newsfeed.stueberl.de!proxad.net!cleanfeed1-b.proxad.net!nnrp18-1.free.fr!not-for-mail Return-Path: X-Greylist: delayed 2368 seconds by postgrey-1.24 at green; Thu, 10 May 2007 22:46:44 CEST From: Duncan Sands To: comp.lang.ada@ada-france.org Subject: Re: Implementing an Ada compiler and libraries. Date: Thu, 10 May 2007 22:01:02 +0200 User-Agent: KMail/1.9.6 References: <1178721451.073700.10730@y80g2000hsf.googlegroups.com> <4643579E.9000305@obry.net> In-Reply-To: <4643579E.9000305@obry.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: amavisd-new at ada-france.org Cc: Pascal Obry X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.9rc1 Precedence: list List-Id: "Gateway to the comp.lang.ada Usenet newsgroup" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.ada Message-ID: X-Leafnode-NNTP-Posting-Host: 88.191.17.134 Organization: Guest of ProXad - France NNTP-Posting-Date: 10 May 2007 22:50:03 MEST NNTP-Posting-Host: 88.191.14.223 X-Trace: 1178830203 news-1.free.fr 2542 88.191.14.223:36254 X-Complaints-To: abuse@proxad.net Xref: g2news1.google.com comp.lang.ada:15740 Date: 2007-05-10T22:50:03+02:00 > Why not play on a C generator for the Ada language ? I have one! I'm porting the GNAT Ada f-e to LLVM (http://llvm.org/), which replaces the gcc code optimizers with those of LLVM. LLVM has a C backend which turns its IR into C. So you can put Ada in and get C out. Unfortunately the C is not always compilable. For example, if you compile an instance of GNAT.Table with Natural as the index type, in the C you end up with the declaration of a very big C array, corresponding to Big_Table_Type. This array is rejected by the gcc C compiler as too big. Still, it works most of the time. Ciao, Duncan.