comp.lang.ada
 help / color / mirror / Atom feed
From: anon@att.net
Subject: Re: GNAT stuck, any idea on how to diagnose it?
Date: Mon, 15 Sep 2014 09:56:27 +0000 (UTC)
Date: 2014-09-15T09:56:27+00:00	[thread overview]
Message-ID: <lv6d49$8l9$1@speranza.aioe.org> (raw)
In-Reply-To: mmnjpohtp615.1d24bw7p0fns8.dlg@40tude.net

To stop the call to gigi and the GCC backend. One can use the debug 
option "-gnatdH"  the "dH" must be lower case 'd' and uppercase 'H'. 
Even though this option can be used on "gnat1" or "gnat compile" or 
even "gnat make". It should be limited to "gnat1" or "gnat compile".

The compiler will generate a <source file>.ali and <source file>.s.
The <source file>.s will only contain a 3 line header for a gcc assembly 
file.

Now all of GNAT debug options can be found in compiler source package 
"debug" and a very simple explanation of each option in the file 
"debug.adb". 

Also, for those options that generate text output. Some of those 
can generate 100s of lines, even for a simple hello world program.
An example is -gnatdt" outputs the a detailed AST listing.

Note: Some of the text debug option will also conflict with other 
      text debug options. So, you need to start slowly (one option 
      at a time) until you learn which options you need and which 
      option conflict with others.


In <mmnjpohtp615.1d24bw7p0fns8.dlg@40tude.net>, "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> writes:
>On Sun, 14 Sep 2014 21:45:16 +0000 (UTC), anon@att.net wrote:
>
>> One explanation is in translating Ada into the "GCC IR" code the 
>> "gigi" may use or alter the code that makes it difficult for the 
>> GCC optimization to process.
>
>Interesting.
>
>My impression based on how I dealt with the problem was that it was not the
>compiler or the code generator which grabbed memory. Maybe it was the
>symbols cross reference and other stuff that helped generating error
>messages and prompts. For example, making a separate body or splitting off
>a child package does not help. I seems that it must be a distance of two or
>more packages apart from the offending body. So my wild guess was that GNAT
>grabbed all symbols from all packages at the distance 1, even from the
>invisible ones and their bodies or ones referenced from the bodies to make
>suggestions on an error, but did not do that for the packages at the
>distance 2.
>
>-- 
>Regards,
>Dmitry A. Kazakov
>http://www.dmitry-kazakov.de



  reply	other threads:[~2014-09-15  9:56 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-14  9:21 GNAT stuck, any idea on how to diagnose it? Natasha Kerensikova
2014-09-14 11:59 ` Georg Bauhaus
2014-09-14 14:49 ` Dmitry A. Kazakov
2014-09-14 15:21   ` Brad Moore
2014-09-14 21:47     ` Natasha Kerensikova
2014-09-14 22:56       ` Anh Vo
2014-09-15  7:15         ` Dmitry A. Kazakov
2014-09-14 21:45   ` anon
2014-09-15  7:25     ` Dmitry A. Kazakov
2014-09-15  9:56       ` anon [this message]
2014-09-15  7:16   ` Natasha Kerensikova
2014-09-15  7:26     ` Jeffrey Carter
2014-09-14 17:45 ` Robert A Duff
replies disabled

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