comp.lang.ada
 help / color / mirror / Atom feed
From: Ted Dennison <dennison@telepath.com>
Subject: Re: conditional compilation
Date: 2000/08/01
Date: 2000-08-01T00:00:00+00:00	[thread overview]
Message-ID: <8m6log$r3a$1@nnrp1.deja.com> (raw)
In-Reply-To: 3985FB16.82D140BB@below.for.email.address

In article <3985FB16.82D140BB@below.for.email.address>,
  Simon Brady <see@below.for.email.address> wrote:
> From my own (small-scale) experience I like what conditional
> compilation can achieve, especially the way it allows debug builds
> loaded up with paranoic self-test code.\x18I would certainly like to see
> a standardised, portable method of achieving such ends in Ada -
> however, the question of (a) whether conditional compilation is the
> way to do it and (b) whether support belongs in or out of the language
> seems to be very much open. I'd be curious to hear what people with of
> larger-scale experience think this.

I've often had to figure out someone else's large C program that was
chock full of target-dependent #ifdef's. Its a *nightmare*. Often times
you have to dig deep into the bowels of an even more complicated
makefile to even figure out which conditional branches your compilation
is using. I suspect the people who specified the orignial Ada
requirements had similar experiences, as support for C-like conditional
compilation was explicitly forbidden.

The Ada approach is supposed to be that you have different source files
for different targets, and use your build tools to choose between them.
From a maintanence standpoint I like that idea a whole lot better. But
it requires that the program be organized ahead of time for this
purpose. Developers aren't used to having to think about these issues
before they start coding. So most of the time the need for the new
target appears after the code is already complete. Then it annoys people
that they have to redesign all their code, rather than just graft on the
new target like they could with C.

--
T.E.D.

http://www.telepath.com/~dennison/Ted/TED.html


Sent via Deja.com http://www.deja.com/
Before you buy.




  parent reply	other threads:[~2000-08-01  0:00 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-07-31  0:00 conditional compilation Matthew Woodcraft
2000-07-31  0:00 ` Marin D. Condic
2000-07-31  0:00   ` Ira D. Baxter
2000-08-01  0:00   ` Simon Brady
2000-07-31  0:00     ` Marin D. Condic
2000-08-01  0:00     ` Ted Dennison [this message]
2000-08-01  0:00       ` Robert A Duff
2000-08-01  0:00         ` Laurent Guerby
2000-08-02  0:00       ` Simon Brady
2000-08-02  0:00         ` Georg Bauhaus
2000-08-02  0:00         ` Robert A Duff
2000-08-02  0:00           ` Brian Rogoff
2000-08-03  0:00             ` Robert A Duff
2000-08-02  0:00           ` Georg Bauhaus
2000-08-03  0:00             ` Robert A Duff
2000-08-03  0:00           ` Florian Weimer
2000-08-02  0:00         ` Simon Brady
2000-08-01  0:00           ` William J. Thomas
  -- strict thread matches above, loose matches on Subject: below --
2000-09-19  0:00 Conditional Compilation Kenneth Kueny
2000-09-19  0:00 ` Ted Dennison
2000-09-19  0:00 ` Jeffrey Carter
2000-09-19  0:00   ` Samuel T. Harris
2000-09-20  0:44     ` Robert Dewar
2000-09-19  0:00 ` E. Robert Tisdale
2000-09-19  0:00   ` David Starner
2000-09-20  0:52     ` Robert Dewar
2000-09-19  0:00   ` Larry Kilgallen
2000-09-19  0:00     ` Jeff Allen
2000-09-20  0:49       ` Robert Dewar
2000-09-19  0:00         ` Bobby D. Bryant
2000-09-24  0:00           ` Robert Dewar
2000-09-20  0:47   ` Robert Dewar
2000-10-09  0:00   ` John McCabe
2000-09-19  0:00 ` David Starner
2000-09-19  0:00 ` Richard Riehle
2000-09-20  1:33 ` tmoran
     [not found]   ` <8qauu3$7ei$1@nnrp1.deja.com>
2000-09-24  0:00     ` Robert Dewar
2000-09-25  2:45       ` Ted Dennison
2000-09-25  0:00         ` peter
     [not found] ` <39CA31F2.E160F0D8@res.raytheon.com>
2000-09-24  0:00   ` Robert Dewar
2001-01-02 13:27 ` Andrew Hately
2001-01-02 16:46   ` Robert Dewar
1989-12-12  0:08 conditional compilation Emery
1988-06-13  0:24 Conditional compilation Steinar Haug
1988-06-17 13:53 ` rds
1988-06-22  0:44   ` Jeff Bartlett
1988-06-23 13:01   ` Arny B. Engelson
1988-06-27 18:01     ` Dave Seward
1988-06-29 13:32   ` brucej
1988-06-17 14:48 ` rjs
replies disabled

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