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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!aioe.org!peer01.am4!peer.am4.highwinds-media.com!news.highwinds-media.com!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!fx05.ams1.POSTED!not-for-mail Subject: Re: Intermediate Representation Newsgroups: comp.lang.ada References: <33f4a7cb-4baa-41fd-b0d5-27501b4fab5a@googlegroups.com> From: Per Sandberg User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <33f4a7cb-4baa-41fd-b0d5-27501b4fab5a@googlegroups.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Message-ID: <4i3hG.2224$8t.1138@fx05.ams1> X-Complaints-To: abuse@usenet.se NNTP-Posting-Date: Wed, 01 Apr 2020 16:27:44 UTC Organization: usenet.se Date: Wed, 1 Apr 2020 18:27:43 +0200 X-Received-Bytes: 1830 X-Received-Body-CRC: 747389639 Xref: reader01.eternal-september.org comp.lang.ada:58273 Date: 2020-04-01T18:27:43+02:00 List-Id: As others mentiond GNAT/GCC is open source so just download and read. And to get the "expanded" Ada code just $gcc -c -gnatD source.adb and you will get an source.adb.dg that will contain an intermediate code that is feed further into the compiler. /P On 4/1/20 1:40 PM, foo wong wrote: > > > Hi everyone, my real name is not Foo, it is Patrick, just keeping Google off my trail. > > I have been using GnuCOBOL extensively since 2013. One thing that I love about it is that it compiles to intermediate C. > > If you write a program, you can compile it to this, run ctags on the runtime and the intermediate C and then hop around jumping from the C function calls generated into the runtime to see how they are actually implemented. > > I would like to do the same with Ada. Is there a way? Using readelf, I was able to get some clues and looking at the .ali files I had a few more clues but so far it does not seem to be the same thing. > > -Patrick >