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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:aed:35cc:: with SMTP id d12mr9906026qte.298.1585742817974; Wed, 01 Apr 2020 05:06:57 -0700 (PDT) X-Received: by 2002:a4a:a747:: with SMTP id h7mr1566483oom.2.1585742816243; Wed, 01 Apr 2020 05:06:56 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 1 Apr 2020 05:06:55 -0700 (PDT) In-Reply-To: <33f4a7cb-4baa-41fd-b0d5-27501b4fab5a@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=47.185.215.60; posting-account=zwxLlwoAAAChLBU7oraRzNDnqQYkYbpo NNTP-Posting-Host: 47.185.215.60 References: <33f4a7cb-4baa-41fd-b0d5-27501b4fab5a@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Intermediate Representation From: Optikos Injection-Date: Wed, 01 Apr 2020 12:06:56 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader01.eternal-september.org comp.lang.ada:58268 Date: 2020-04-01T05:06:55-07:00 List-Id: On Wednesday, April 1, 2020 at 6:40:24 AM UTC-5, foo wong wrote: > Hi everyone, my real name is not Foo, it is Patrick, just keeping Google = off my trail. >=20 > I have been using GnuCOBOL extensively since 2013. One thing that I love = about it is that it compiles to intermediate C. >=20 > If you write a program, you can compile it to this, run ctags on the runt= ime and the intermediate C and > then hop around jumping from the C function calls generated into the runt= ime to see how they are > actually implemented. >=20 > I would like to do the same with Ada. Is there a way? Using readelf, I wa= s able to get some clues and > looking at the .ali files I had a few more clues but so far it does not s= eem to be the same thing. >=20 > -Patrick https://www.cse.iitb.ac.in/~uday/courses/cs324-05/gccProjects/node4.html gives some command-line options that you might find interesting. Note that= that webpage has a typo: it misspells GIMPLE as SIMPLE in one place, but = then goes on to spell it correctly in the command-line flag name. GIMPLE i= s the AST primarily purposed for C/C++ to which Ada gets tree-transducer in= GNAT.