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.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,5f6125e9594f9968 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Received: by 10.68.241.71 with SMTP id wg7mr5129692pbc.8.1338960067343; Tue, 05 Jun 2012 22:21:07 -0700 (PDT) Path: l9ni11237pbj.0!nntp.google.com!news2.google.com!goblin3!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: Ada to C translator for small microcontrollers Date: Wed, 06 Jun 2012 07:21:09 +0200 Organization: A noiseless patient Spider Message-ID: References: <2424259e-cf1c-408e-a57e-f2c948087186@i2g2000vbv.googlegroups.com> <4fba349b$0$6560$9b4e6d93@newsspool4.arcor-online.net> <7ad13453-fea5-4b3a-9a93-306302f073da@googlegroups.com> Mime-Version: 1.0 Injection-Date: Wed, 6 Jun 2012 05:21:06 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="cJo7kSTQUrCFv2/D8KKtqw"; logging-data="10136"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+lrLrr83jXbvGu1uuPOlDg" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 In-Reply-To: Cancel-Lock: sha1:/zD+uB5jD9qZ+HvJ8ulKQAO72Gw= X-Enigmail-Version: 1.4.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Date: 2012-06-06T07:21:09+02:00 List-Id: Le 05/06/2012 14:17, Brian Drummond a écrit : > For the C back-end, it might be worth looking at an old version of f2c, > (from before it became g77 or gfortran) to see how some other-language > constructs were translated into c. It's probably not pretty, but I > remember it as being a fairly small program. > Once upon a time, I had to analyze Fortran code, and I considered adapting f2c. I gave up when I discovered a goto from the outside into the middle of a three-level nested loop. f2c is a hopeless mess. -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00 http://www.adalog.fr