comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <stephen_leake@stephe-leake.org>
Subject: Re: GNAT and register allocation
Date: Thu, 26 Apr 2012 06:55:46 -0400
Date: 2012-04-26T06:55:46-04:00	[thread overview]
Message-ID: <82sjfqep8t.fsf@stephe-leake.org> (raw)
In-Reply-To: 4f97f411$0$7620$9b4e6d93@newsspool1.arcor-online.net

Georg Bauhaus <rm.dash-bauhaus@futureapps.de> writes:

> On 25.04.12 13:51, Stephen Leake wrote:
>
>>> Yes, GNAT project files are understandable, though non-portable TTBOMK.
>> 
>> What do you mean by "portable" here?
>
> Portable from one compiler to another. The Ada programs typically
> are portable as-is.

Ok. But the C and Fortran compiler options are equally non-portable, so
I don't see this as significant.

>>> Gpr files will likely not be used by those who code for Intel's
>>> Fortran compiler, or the C part of GCC; they can easily specify
>>> IFCOPTS or GCCOPTS referenced in Makefiles.
>> 
>> Why is that relevant?
>
>> So if that gnatmake line includes -P<file>, and <file> is kept with the
>> rest of the Ada source code, what's the problem?
>
> The problem is that there exists a setup, and personnel (P), and
> (1) there is a script
> (2) that processes a .ini file (common to all languages)
> (3) runs a simple makefile injecting few variables from step (2)
> (4) for all languages (more than a dozen).
>
> In the interest of manageability and transparency to (P), things are
> to be kept simple and comparable, as far as I understand previous
> comments. The programs do change every now and then.
> The configuration files would have to change, too.
> Such changes need to be checked by (P), for all languages,
> in order to prevent anything that in effect violates some rules.

So the Ada programers are required to understand the C and Fortran
compiler options well enough to maintain them? And conversely, the C and
Fortran people are expected to maintain the Ada compiler options.

That doesn't sound reasonable to me.

I will grant that the gpr files are not as well documented as the
compiler options; it is not possible to determine which package should
contain any given compiler option.

If that were fixed, I think it's reasonable to expect anyone who can
maintain makefiles and compiler options in general to maintain gpr files.

And as I have said, in the long run everyone would gain if everyone
switched to gpr files.

> Ideally, settings commonly used by all compilers, such as "optimize",
> or "use this hardware",  will be sufficiently effective and understood
> by all compilers. 

Do you mean "spelled the same for all compilers" or "all compilers will
have an option similar enough in meaning". I'd expect the latter, but
not the former.

> In fact, an earlier version of the GNAT make rule had been referring
> to COPTS, which was -O3 -fomit-frame-pointer; the C++ rule did the
> same, I think. Fortran cannot refer to GCCish COPTS, since they
> switched to Intel Fortran.

And did anyone object to that "non-compatible options" change?

-- 
-- Stephe



  reply	other threads:[~2012-04-26 10:55 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-20 10:21 GNAT and register allocation Georg Bauhaus
2012-04-20 11:17 ` Georg Bauhaus
2012-04-20 13:48   ` Markus Schöpflin
2012-04-20 15:34     ` Georg Bauhaus
2012-04-21 12:10       ` Stephen Leake
2012-04-22 16:43         ` Georg Bauhaus
2012-04-22 17:39           ` Jacob Sparre Andersen
2012-04-22 21:14             ` Georg Bauhaus
2012-04-24 12:24               ` Stephen Leake
2012-04-24 13:27                 ` Georg Bauhaus
2012-04-24 18:40                   ` "gnatchop" and ".gpr" files? (Was: GNAT and register allocation) Jacob Sparre Andersen
2012-04-25 11:51                   ` GNAT and register allocation Stephen Leake
2012-04-25 12:54                     ` Georg Bauhaus
2012-04-26 10:55                       ` Stephen Leake [this message]
2012-04-26 17:15                         ` Georg Bauhaus
2012-04-24 12:21           ` Stephen Leake
2012-04-22 17:30         ` Georg Bauhaus
2012-04-21 15:41       ` Florian Weimer
2012-04-22 16:53         ` Georg Bauhaus
2012-04-22 20:53           ` gautier_niouzes
2012-04-22 21:24             ` Georg Bauhaus
2012-04-23  8:43               ` gautier_niouzes
2012-04-23 16:46                 ` Georg Bauhaus
2012-04-23  9:11               ` gautier_niouzes
2012-04-23 16:47                 ` Georg Bauhaus
replies disabled

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