From: Georg Bauhaus <rm.dash-bauhaus@futureapps.de>
Subject: Re: chopping Ada source that have preprocessor symbols in them
Date: Tue, 12 Feb 2013 00:13:20 +0100
Date: 2013-02-12T00:13:17+01:00 [thread overview]
Message-ID: <51197b0d$0$9510$9b4e6d93@newsspool1.arcor-online.net> (raw)
In-Reply-To: <ly1ucps0pk.fsf@pushface.org>
On 09.02.13 21:15, Simon Wright wrote:
> Georg Bauhaus <rm.dash-bauhaus@futureapps.de> writes:
>
>> The problem is that running the chain of tools again and again is
>> prohibitively inefficient. It boils down to recompiling the world
>> after each edit.
>
> You could try the gnatmake (and, I think, gprbuild) flag -m:
Promising, but there is a catch.
As Björn said, the compiler should ideally be able to refer to the
original source file as usual. Now, while switch -m does have the desired
effect when chaining the three steps gnatprep && gnatchop && gnatmake,
the compiler messages will in the end refer to the intermediate file
that gnatprep will have created. Not ideal, unless I can convince
the IDE that it should automatically substitute the original file's
name for the name of the intermediate file when inspecting the
compiler's diagnostics. A kludge, but maybe a possibility.
The alternative switch -gnatep would obviate the need for gnatprep
but will, alas, cancel the effect of switch -m, AFAICS. (In cases
when gnatchop will compute usable offsets.)
next prev parent reply other threads:[~2013-02-11 23:13 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-06 0:54 chopping Ada source that have preprocessor symbols in them Georg Bauhaus
2013-02-06 5:29 ` codeallergy
2013-02-06 12:00 ` Georg Bauhaus
2013-02-08 12:22 ` Stephen Leake
2013-02-08 13:19 ` Georg Bauhaus
2013-02-09 2:51 ` Stephen Leake
2013-02-09 17:59 ` Georg Bauhaus
2013-02-09 20:15 ` Simon Wright
2013-02-11 23:13 ` Georg Bauhaus [this message]
2013-02-12 16:04 ` Björn Persson
2013-02-12 19:18 ` Georg Bauhaus
2013-02-15 10:40 ` Stephen Leake
2013-02-15 11:11 ` Georg Bauhaus
2013-02-15 16:39 ` Pascal Obry
2013-02-16 1:10 ` Randy Brukardt
2013-02-17 8:46 ` Jacob Sparre Andersen
2013-02-18 23:18 ` Randy Brukardt
2013-02-19 10:05 ` Version control and multiple implementation variants (Was: chopping Ada source that have preprocessor symbols in them) Jacob Sparre Andersen
2013-02-19 11:41 ` Thomas Løcke
2013-02-19 16:42 ` chopping Ada source that have preprocessor symbols in them Pascal Obry
2013-02-19 21:07 ` Version control and multiple implementation variants (Was: chopping Ada source that have preprocessor symbols in them) Randy Brukardt
2013-02-19 23:20 ` Georg Bauhaus
2013-02-16 8:22 ` chopping Ada source that have preprocessor symbols in them Stephen Leake
2013-02-16 15:12 ` Georg Bauhaus
2013-02-17 11:51 ` Stephen Leake
2013-02-18 12:51 ` Björn Persson
2013-02-08 20:27 ` Florian Weimer
2013-02-08 21:09 ` Georg Bauhaus
2013-02-10 9:01 ` Björn Persson
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox