comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <stephen_leake@stephe-leake.org>
Subject: Re: GNAT and register allocation
Date: Wed, 25 Apr 2012 07:51:03 -0400
Date: 2012-04-25T07:51:03-04:00	[thread overview]
Message-ID: <82vckof2s8.fsf@stephe-leake.org> (raw)
In-Reply-To: 4f96aa50$0$7617$9b4e6d93@newsspool1.arcor-online.net

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

> On 24.04.12 14:24, Stephen Leake wrote:
>
>> I think (well-written) gpr files are _much_ more understandable than
>> comparable makefiles for C!
>
> Yes, GNAT project files are understandable, though non-portable TTBOMK.

What do you mean by "portable" here?

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

People coding for Ada won't use IFCOPTS or GCCOPTS either.

On the other hand, people coding for C and Fortran _can_ use gpr files;
they work with anything that looks like a compiler (_not_ limited to Gnu
tools). But they don't have to just because you do.

> The Makefile for all C programs, or C++ programs, and a number of other
> languages currently looks simlar to this:
>
> %.c : %.systematic-name
> 	mv $< $@
>
> %.executable : %.c
> 	$(CC) -pipe -Wall $(COPTS) $(GCCOPTS) $< -o $@
>
> So the source text can be all in one file, the translation is kept simple.
> GNAT also gets only two lines, one for gnatchop, the other for gnatmake.

So if that gnatmake line includes -P<file>, and <file> is kept with the
rest of the Ada source code, what's the problem?

-- 
-- Stephe



  parent reply	other threads:[~2012-04-25 11:50 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                   ` Stephen Leake [this message]
2012-04-25 12:54                     ` GNAT and register allocation Georg Bauhaus
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