comp.lang.ada
 help / color / mirror / Atom feed
From: Per Sandberg <per.s.sandberg@bahnhof.se>
Subject: Re: Intermediate Representation
Date: Wed, 1 Apr 2020 18:27:43 +0200
Date: 2020-04-01T18:27:43+02:00	[thread overview]
Message-ID: <4i3hG.2224$8t.1138@fx05.ams1> (raw)
In-Reply-To: <33f4a7cb-4baa-41fd-b0d5-27501b4fab5a@googlegroups.com>

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
> 

  parent reply	other threads:[~2020-04-01 16:27 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-01 11:40 Intermediate Representation foo wong
2020-04-01 11:54 ` foo wong
2020-04-01 12:16   ` Egil H H
2020-04-01 12:06 ` Optikos
2020-04-01 12:25   ` foo wong
2020-04-01 15:53 ` Simon Wright
2020-04-01 16:27 ` Per Sandberg [this message]
2020-04-01 17:17   ` Anh Vo
2020-04-01 20:40     ` foo wong
2020-04-01 22:28       ` Bob Duff
2020-04-02  0:19         ` foo wong
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox