comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <rm.dash-bauhaus@futureapps.de>
Subject: Re: GNAT and register allocation
Date: Wed, 25 Apr 2012 14:54:41 +0200
Date: 2012-04-25T14:54:41+02:00	[thread overview]
Message-ID: <4f97f411$0$7620$9b4e6d93@newsspool1.arcor-online.net> (raw)
In-Reply-To: <82vckof2s8.fsf@stephe-leake.org>

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.

>> 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.

Ideally, settings commonly used by all compilers, such as "optimize",
or "use this hardware",  will be sufficiently effective and understood
by all compilers. 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.



  reply	other threads:[~2012-04-25 12:54 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 [this message]
2012-04-26 10:55                       ` Stephen Leake
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